in src/main/scala/org/intellij/scala/bundle/Main.scala [29:40]
private def downloadComponents(components: Seq[Component]): Unit =
components.filter(_.downloadable).par.foreach { component =>
val destination = repository / component.path
if (!destination.exists) {
info(s"Downloading ${component.path}...")
download(new URL(component.location), destination)
if (!destination.exists) {
error(s"Error downloading ${component.location}")
sys.exit(-1)
}
}
}