Search code examples
javaantbuild.xml

ant: order of execution of "depends" target?


if I have

<target name="A" depends="B,C"/>

is there a deterministic order of execution of targets B and C? Are they executed one after the other in the order of their appearance in the list, are they executed in parallel? Does C wait for B to finish?


Solution

  • They are executed one after the other. C will not start until B finishes.

    Furthermore, the 'if' clause is not checked until after the 'depends' targets are executed.