ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pomè Elisabetta <ep...@axioma.it>
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 

Elisabetta 

-----Messaggio originale-----
Da: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Inviato: giovedì 30 agosto 2007 16.10
A: user@ant.apache.org
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:epome@axioma.it] 
>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. 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

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