ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Anson <>
Subject Re: ant-contrib <for> and property immutability
Date Mon, 02 Feb 2004 22:42:48 GMT
I posted a change to <var> in ant-contrib, it now has an 'unset' 
attribute that, when used, will wipe a property from a project like it 
had never been there, which will make the target if/unless work as expected.


Matt Benson wrote:

> --- Dale Anson <> wrote:
>>Scott's take on <variable> is correct -- it can only
>>override, not 
>>remove a property. Once the property is created,
>>Matt Benson wrote:
>>>effect).  While this may or may not (probably not)
>>>look like a nonexistent property to a target's
>>>if/unless attributes, you should, in <for>'s
>>><sequential>, be able to unset your <variable>
>>>every iteration.
> The manual says "the property task can't override a
> var value, however, if the var value is set to "",
> then it can".  This is what I was saying... the
> property is NOT truly unset, but if its value can be
> reassigned via normal properties usage then that's
> almost as good/useful/versatile.
> Also, forgive my usage of the wrong tagname: 
> <variable> vs. <var>.
> -Matt
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message