ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pomè Elisabetta <>
Subject R: global variables
Date Thu, 30 Aug 2007 14:36:12 GMT
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 


-----Messaggio originale-----
Da: []
Inviato: giovedì 30 agosto 2007 16.10
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)


>-----Ursprüngliche Nachricht-----
>Von: Pomè Elisabetta [] 
>Gesendet: Donnerstag, 30. August 2007 15:58
>An: User@Ant. 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.
>via De Vizzi 35/39 - 20092 Cinisello (MI)
>Tel. +39 02-618.061 - Fax +39 02-660.10337

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message