ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: if/unless Attributes
Date Thu, 24 Sep 2009 16:09:10 GMT
On 2009-09-24, Stefan Bodewig <bodewig@apache.org> wrote:

> <target if="${foo}"/>

> will only be executed if a property named ${foo} exists (unexpanded) -
> in Ant 1.7.1. and Ant 1.8.0 - or if expanding ${foo} returns something
> that equals Boolean.TRUE (Ant 1.8.0 only).

This part is false, I just re-read the code.  It will look up a property
named like the expansion of ${foo} - and it's been that way in 1.7.1 as
well.

This doesn't change the rest of what I wrote, you'd still need
<target if="${foo}"/> if you wanted to skip a target if foo evaluated to
"false".

Stefan

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


Mime
View raw message