ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject Re: Scope of the ANT property!!!
Date Fri, 12 Dec 2003 14:43:12 GMT
Properties once set cannot be changed with the <property/> task.
Ant-Contrib or Antelope has a variable task which allows to change values.
But maybe there is a proper way of doing what you want to do with ant.

Antoine

Nagarajan Murugesan wrote:

>Hi All,
>
>What is the scope of the property value in a build file.
>I want to change the property value in between the build process.
>
>For Example:
>
>project name="Installation" default="run">
>	
>	<target name="run">
>	
>  	<property name="count" value="I"/>
>  	<echo>${count}</echo>
>  	
>  	<property name="count" value="II"/>
>  	<echo>${count}</echo>
>  	
>
>	</target>
></project>
>
>But in both the echo command it gives the same value. Is there a way to
>change property value?
>
>Thanks,
>Nagarajan
>
>  
>


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


Mime
View raw message