Jump to: navigation, search


17 bytes added, 13:41, 14 October 2010
:It should be noted, however, that Ant's depends attribute only specifies the order in which targets should be executed - it does not affect whether the target that specifies the dependency(s) gets executed if the dependent target(s) did not (need to) run.
:Note: The if and unless attributes only enable or disable the target to which they are attached. They do not control whether or not targets that a conditional target depends upon get executed. In fact, they do not even get evaluated until the target is about to be executed, and all its predecessors have already run.(See code below)
<source lang=java>
<target name="myTarget" depends="myTarget.check" if="">

Navigation menu