ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Schapitz <t.schap...@lycos.de>
Subject Re: Rename a property value
Date Sat, 19 Feb 2005 00:26:06 GMT

Sorry, but this won't work this way. In Ant properties are just like 
variables declared as 'final',
meaning: they can get set only once.

What is it, that you like to achieve?

Thomas

Kasparek, Bernadette schrieb:

>Hi everybody,
>
>I've a problem. I want to define a property which I want to rename in the
>Main-Target, so that I can use it with different values.
>
>In detail I have the following code:
>
><property name="tar.name" value="tar.default"/>
>
><target name="main> 
>	<property name="tar.name" value="new"/> 
>	<antcall target="tar-all"/> <-- here I will use the property
></target>
>
>My problem is, that it always take the first value. Is there a way how I can
>rename the value?
>
>Thanks,
>
>Bernadette Kasparek
>
>  
>


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


Mime
View raw message