Daisy thanks,
But, let me see if I undestood...
if a declare a property inside a target, when the
target finish is the property destroyed?? so, thats
why i can use it again.
but what happens if I use it for a general block,
after finishing that block I wanted to use it again,
will the value change for the new one??
e.g.
<!-- this is the block1 -->
<property name="myprop" value="v1" />
<target1...>
.....
task that needs myprop=v1
</target1>
<target2...>
.....
task that needs myprop=v1
</target2>
<target3...>
.....
task that needs myprop=v1
</target3>
<!-- this is the block2 -->
<property name="myprop" value="v2" />
<target1...>
.....
task that needs myprop=v2
</target1>
<target2...>
.....
task that needs myprop=v2
</target2>
<target3...>
.....
task that needs myprop=v2
</target3>
does the value change???
Thanks
--- Daisy Guo <[EMAIL PROTECTED]> wrote:
> 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/
=====
_________________________________________________________________
"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/