in src/main/scala/org/intellij/scala/bundle/Main.scala [42:54]
private def build(descriptor: Descriptor, output: File): Unit = {
info(s"Building ${output.getName}...")
using(Destination(output)) { destination =>
Components.All.foreach { component =>
descriptor.lift(component).foreach { mapper =>
using(Source(repository / component.path)) { source =>
source.collect(mapper).foreach(destination(_))
}
}
}
}
}