conditional global variables?

2010-09-28 Thread Heath, Graham
On Sep 26, 2010, at 8:23 AM, Marina wrote: > Hello! > In essence, I would like to know how to define a global property > conditionally, and then have it available to all build files via . > What I do is supply a -Dtarget=Debug or Release via the commandline which causes a build.properties file t

Re: conditional global variables?

2010-09-27 Thread Marina
Thanks, David and Matt, Matt, yes, was what I was looking for - for some reason I thought you coudl not use them outside of s, and, thus, could not use to define global variables. But since it is working great - that's all I needed. David, thanks for extensive suggested options - the

Re: conditional global variables?

2010-09-26 Thread David Weintraub
There are several ways this can be done: One is to use multiple tasks: In the example you gave, you could simply set the property "type" to either "dev" or "release": You can also use separate XML property files: Or, you can use the antcontrib library wh

Re: conditional global variables?

2010-09-26 Thread Matt Benson
On Sep 26, 2010, at 8:23 AM, Marina wrote: > Hello! > In essence, I would like to know how to define a global property > conditionally, > and then have it available to all build files via . > Um, use the task? -Matt > Now the details: > I have a build.common.xml file with all global proper

conditional global variables?

2010-09-26 Thread Marina
Hello! In essence, I would like to know how to define a global property conditionally, and then have it available to all build files via . Now the details: I have a build.common.xml file with all global properties and paths defined. I import it into my main build and component build files via ,

Re: global variables

2007-08-31 Thread Peter Reilly
On 8/31/07, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 30, 2007 4:10 PM > To: user@ant.apache.org > Subject: AW: global variables > > /* > Each

RE: global variables

2007-08-31 Thread Rebhan, Gilbert
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2007 4:10 PM To: user@ant.apache.org Subject: AW: global variables /* Each property is global and immutable. ... unless you have a custom built Ant from HEAD (since Peters support for

R: R: global variables

2007-08-30 Thread Pomè Elisabetta
List Oggetto: Re: R: global variables On 8/30/07, Pomè Elisabetta <[EMAIL PROTECTED]> wrote: > 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

Re: R: global variables

2007-08-30 Thread Dominique Devienne
On 8/30/07, Pomè Elisabetta <[EMAIL PROTECTED]> wrote: > 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 propert

R: global variables

2007-08-30 Thread Pomè Elisabetta
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:

AW: global variables

2007-08-30 Thread Jan.Materne
IL 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

global variables

2007-08-30 Thread Pomè Elisabetta
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