ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Anson <dan...@germane-software.com>
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.

Dale


Matt Benson wrote:

> --- Dale Anson <danson@germane-software.com> 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>
>>
>>during
>>
>>>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!
> http://webhosting.yahoo.com/ps/sb/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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


Mime
View raw message