ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject Re: if/unless Attributes
Date Thu, 24 Sep 2009 14:19:47 GMT
On Thu, Sep 24, 2009 at 6:32 AM, Stefan Bodewig <> wrote:
> the if/unless attributes for target have changes slightly in that they
> now may use PropertyHelpers.  I.e.
> <target if="${foo}">
> will not be executed if ${foo} happens to expand to a Boolean instance
> with a booleanValue() of "false" and likewise
> <target unless="${foo}">
> will be executed in that case.  So far this hasn't been documented, but
> I'll do so shortly.

That's a pretty big change.

What's the exact semantic? Does it depend on the type returned, like
Boolean, Object, String. For String, does that fall back to assuming
it's a property name
that must be checked for existence?

What's the exact timing of the evaluation? Before or after depends' targets?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message