ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: question about resetting <property>
Date Thu, 22 Apr 2004 07:32:35 GMT
You canĀ“t. Properties are immutable by design.

>From the manual [1]:
"Properties are immutable: whoever sets a property first freezes it for the
rest of the build; they are most definately not variable."


Jan

[1] http://ant.apache.org/manual/CoreTasks/property.html



> -----Original Message-----
> From: Baz [mailto:barry@goodconsultants.com]
> Sent: Thursday, April 22, 2004 9:29 AM
> To: Ant Users List
> Subject: question about resetting <property>
> 
> 
> All,
> 
> I have a silly question... How can i reset the property 
> value? For example,
> 
> <property name="test1.home" value="1"/>
> <echo message="test1.home is ${test1.home}"/>
> <property name="test1.home" value="2"/>
> <echo message="test1.home is ${test1.home}"/>
> 
> The output will be 1, and 1. Why? How can i reset the property?
> 
> Thanks
> 
> Barry
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message