ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daisy Guo <>
Subject RE: variables instead properties!
Date Mon, 27 Aug 2001 14:32:00 GMT
If you need the property in two different targets, try:
<target name="1" >
	<property name="myprop" value="v1" />
	add task that needs myprop=v1 here....
<target name="2">
	<property name="myprop" value="v2" />
	add task that need myprop=v2 here....

-----Original Message-----
From: Edgar "Sánchez []
Sent: Saturday, August 25, 2001 1:54 PM
Subject: variables instead properties!

  Hello you people!!

   I've been reading the manuals to find  if is there
any chance to change the value of a property, coz i
delclared one with value="" e.g.
  <property name="Mdl_Name" Value=""/>

  after that, some line bellow I wanted to change the
value to:

<property name="Mdl_Name" Value="somevalue"/>

  but the second asignment did nothing
  also a tried to put in in the way:

<property name="${Mdl_Name}" Value="somevalue"/>

  but it didn't work too :-(

  is there any way to use variables in Ant in order to
mantain the same variable (property) and changing the
values the time we want??

  thanks in advance and have a good day.



"Puedes sentirte desilusionado si fallas, pero estás condenado si no lo

"You can get disappointed if you fail down, but you are doomed if you do not
try it."

ICQ #  22338121

Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger

View raw message