On 2009-09-24, Matt Benson <[email protected]> wrote:

> --- On Thu, 9/24/09, Peter Reilly <[email protected]> wrote:

>> using <target name="x" if="${foo}">
>> seems to be very very strange..

> Maybe it seems that way, but taking into account you'd have to be
> deliberately using propertyhelper delegates to make proper use of
> this, it might look like:

> <target name="x" if="${boolean:${do-x}}" unless="${boolean:${skip-x}}">
>   <...>
> </target>

<target name="x" if="${||(${boolean:${arg1}},${boolean:${arg2}})}">

yes, it looks unwieldy.

It would be possible to remove the outer ${} so Matt's example could
become 

if="boolean:${do-x}"

This can be done without breaking backwards compatibility too much but
leaves us with a place where Ant suddenly expands properties without ${}
syntax - I'm not convinced this would be a good idea.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to