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>
<target name="2">
        <property name="myprop" value="v2" />
        add task that need myprop=v2 here....
</target>

-----Original Message-----
From: Edgar "S�nchez [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 25, 2001 1:54 PM
To: [EMAIL PROTECTED]
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
intentas."

"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
http://phonecard.yahoo.com/

Reply via email to