Thank you, but I'm not sure I have understood.
If I have 3 target (target A with an antcall to target B and an antcall to
another target C) and I define a property in target B I can't see its value
in target C. So I thought that properties have the scope of the target in
which they're defined. Am I wrong? 
But my problem is different 'cause I need to change a value due to some
condition in order to decide a behavior. I have a foreach loop: inside that
loop I have to set "something" (a property? I don't think, 'cause properties
are immutable) when I found a certain condition. Each time I enter the loop
I need to test this "something" in order to understand whether continue or
end the loop.
Thank you again 

Elisabetta 

-----Messaggio originale-----
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Inviato: giovedì 30 agosto 2007 16.10
A: [email protected]
Oggetto: AW: global variables


Each property is global and immutable.

...

unless you have a custom built Ant from HEAD (since Peters 
support for local variables)


Jan 

>-----Ursprüngliche Nachricht-----
>Von: Pomè Elisabetta [mailto:[EMAIL PROTECTED] 
>Gesendet: Donnerstag, 30. August 2007 15:58
>An: [EMAIL PROTECTED] Apache. Org (E-mail)
>Betreff: global variables
>
>Hi all,
>is it possible in ant to have global variables? I need to set 
>a variable
>inside a target (ant)called by a foreach cycle, in order to 
>test wether the
>cycle have to end or not.
>How can I reach this purpose?
>
>Axioma S.p.A. www.axioma.it
>via De Vizzi 35/39 - 20092 Cinisello B.mo (MI)
>Tel. +39 02-618.061 - Fax +39 02-660.10337
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to