Allow bundle to run for all targets, not just target roots
Review Request #3119 - Created Nov. 13, 2015 and submitted
We are developing an intergration test framework where we will start JVM applications from a JVM test. As part of this, we need to build the bundles for the dependent applications and to have all this happen automatically, we want to specify the jvm_app targets as dependencies for our junit_tests target.
Unfortunately, this currently doesn't work as the bundle task only runs for the target roots, not all targets so calling bundle on the junit_tests target will not call bundle for its dependencies.
Change the bundle_create task to run for all targets, not just target roots.
This is in general safe as jvm_app targets should not have dependencies themselves and targets should in general depend on library targets, not on jvm_app (or jvm_binary) targets.
Can you expand the description with a bit more information on why someone might want to do this (a junit test testing a bundle), and also explain why it should generally be safe (because jvm_app targets should not have deps)?
Updated description pr suggestion from stuhood.