ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: help with some conditional logic..
Date Wed, 25 Jul 2007 18:42:31 GMT
On 7/23/07, warhero <beingthexemplary@gmail.com> wrote:
> bill/wilandra wrote:
> > Create a target named init which will define/set props.someprop to any
> > value.
> > <target name="test1" depends="init" if="props.someprop">

> This would kind of work. But this will fail to execute all commands in a
> "depends" chain. if one of the if tests isn't met then subsequent target's
> won't execute.

FTR, that's not quite true. An if/unless on a target affects only that
target's content, and the dependency chain is always executed before
the if/unless is evaluated, which is why the target that sets or not
the property tested is listed as a dependency. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message