You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dale Anson <da...@germane-software.com> on 2004/02/02 23:42:48 UTC

Re: ant-contrib and property immutability

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 <da...@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