Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 88815 invoked from network); 30 Aug 2007 14:33:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Aug 2007 14:33:32 -0000 Received: (qmail 43999 invoked by uid 500); 30 Aug 2007 14:33:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 43600 invoked by uid 500); 30 Aug 2007 14:33:24 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 43589 invoked by uid 99); 30 Aug 2007 14:33:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 07:33:24 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [151.11.160.27] (HELO office-e.axioma.it) (151.11.160.27) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 14:34:18 +0000 Received: by OFFICE-E with Internet Mail Service (5.5.2657.72) id ; Thu, 30 Aug 2007 16:36:12 +0200 Message-ID: <79D8F22AF67F59468C703C3723E51DAE02D26EB2@OFFICE-E> From: =?iso-8859-1?Q?Pom=E8_Elisabetta?= To: 'Ant Users List' Subject: R: global variables Date: Thu, 30 Aug 2007 16:36:12 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7EB13.1C9A9FF0" X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C7EB13.1C9A9FF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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?=20 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=20 Elisabetta=20 -----Messaggio originale----- Da: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] Inviato: gioved=EC 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=20 support for local variables) Jan=20 >-----Urspr=FCngliche Nachricht----- >Von: Pom=E8 Elisabetta [mailto:epome@axioma.it]=20 >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=20 >a variable >inside a target (ant)called by a foreach cycle, in order to=20 >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 ------_=_NextPart_001_01C7EB13.1C9A9FF0--