Antoine Levy Lambert wrote:
<target name="foo" depends="bar" if="someproperty"/>

When executing foo, bar will get executed regardless of whether someproperty is set or not.

I would often see the need for another variation of if, which would remove bar from the dependency tree if someproperty is not set.

<target name="foo" if="someproperty">
  <antcall target="bar"/>
</target>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to