Re: How change variable based on environment variable value

2011-06-08 Thread wolfgang haefelinger
es I could just set the >> default value of JOF path in that file like > value="C:/Inetpub/wwwroot/wo30"/> which would be the state that the build >> file is not being run on the build box? >> >> so your code would look like: >> >> >> >&g

Re: How change variable based on environment variable value

2011-06-08 Thread wolfgang haefelinger
gt; >   >     >    BUILD_BOX = ${env.BUILD_BOX} >     >       >     >    JOF = ${JOF} > >     >    After Property file, JOF = ${JOF} >   > > > > Thanks, > BPM > > > -Original Message- > From: Echlin, Robert [mailto:robert.ec

RE: How change variable based on environment variable value

2011-06-06 Thread Echlin, Robert
2011 3:02 PM > To: user@ant.apache.org > Cc: Echlin, Robert > Subject: RE: How change variable based on environment variable value > > Many thanks for your help :) > BPM > > -Original Message- > From: Echlin, Robert [mailto:robert.ech...@windriver.com] > Sent: Monday,

RE: How change variable based on environment variable value

2011-06-06 Thread Brian McCann
Thanks for helping with this issue BPM -Original Message- From: Scot P. Floess [mailto:sflo...@nc.rr.com] Sent: Monday, June 06, 2011 1:58 PM To: Brian McCann Subject: RE: How change variable based on environment variable value Sorry, that should be: ... On Mon, 6 Jun 2011, Scot P

RE: How change variable based on environment variable value

2011-06-06 Thread Brian McCann
Many thanks for your help :) BPM -Original Message- From: Echlin, Robert [mailto:robert.ech...@windriver.com] Sent: Monday, June 06, 2011 1:51 PM To: Brian McCann Subject: RE: How change variable based on environment variable value > -Original Message- > From: Brian

RE: How change variable based on environment variable value

2011-06-06 Thread Brian McCann
ne 06, 2011 12:47 PM To: Brian McCann Cc: 'Ant Users List' Subject: RE: How change variable based on environment variable value I don't see how either target checkbuildbox nor setJOF is called... Your default target is set to "build" - how are you executing when you run ant?

RE: How change variable based on environment variable value

2011-06-06 Thread Brian McCann
ver.com] Sent: Monday, June 06, 2011 12:46 PM To: Ant Users List Subject: RE: How change variable based on environment variable value Hi Brian, Try this code. Note: you can't put the default value of JOF into a file that will be loaded automatically when ant is run, such as (home)/.antrc, as

RE: How change variable based on environment variable value

2011-06-06 Thread Scot P. Floess
${JOF} == -Original Message- From: Scot P. Floess [mailto:sflo...@nc.rr.com] Sent: Monday, June 06, 2011 12:09 PM To: Ant Users List Subject: Re: How change variable based on environment variable value Any chance we can see the complete build.xml? On Mon, 6 Jun 2011, Bria

RE: How change variable based on environment variable value

2011-06-06 Thread Echlin, Robert
Hi Brian, Try this code. Note: you can't put the default value of JOF into a file that will be loaded automatically when ant is run, such as (home)/.antrc, as that would set JOF before your code executes. First set works, last set fails. On the other hand, you could set "JOF_default" in a proper

RE: How change variable based on environment variable value

2011-06-06 Thread Brian McCann
change variable based on environment variable value Any chance we can see the complete build.xml? On Mon, 6 Jun 2011, Brian McCann wrote: > Hi, > Below is xml from my build.xml file. I'm trying to set a property value > based on the condition > that the build.xml file is being run on

Re: How change variable based on environment variable value

2011-06-06 Thread Scot P. Floess
Any chance we can see the complete build.xml? On Mon, 6 Jun 2011, Brian McCann wrote: Hi, Below is xml from my build.xml file. I'm trying to set a property value based on the condition that the build.xml file is being run on the build box. I created a system variable and set it to true on a Wi