ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <jesse.gl...@sun.com>
Subject Re: deep-if/deep-unless
Date Tue, 15 Dec 2009 00:24:12 GMT
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-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message