ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Cleghorn <>
Subject If and unless
Date Mon, 05 Aug 2013 16:31:24 GMT

I'm puzzled by the new if and unless functionality - it seems that in 
1.9.2, the following, where ${id}.css *does* exist:
<available filepath="${toString:input}" file="${id}.css" 

...will set $has.css.overrides to 'true' as expected, but the property 
won't then evaluate as (boolean) true for this:
<echo if:true="has.css.overrides" message="--- CSS override found ---"/>

Is this expected behaviour? If I use if:set, then the echo task runs as 
I'd expected, but if possible I'd like to be able to distinguish between 
'true' and 'false', as well as between 'true' and 'not set'.

Any advice most appreciated!

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

View raw message