AW: Check for Env variables

2005-03-22 Thread Jan . Materne
output.dir=${output.dir} 1. import the environment variables with prefix "env" 2. if the OUTPUT_DIR was set, the the property output.dir to its value 3. set the output.dir to default, which only works, if not set prior. Properties are immutable. 4. Give the o

Check for Env variables

2005-03-22 Thread Janu Mohandass
Hi, I am newbie in ANT. My requirement is, if the environment variable is not set , then I want the output to go to the current directory, else the value should be picked up from the environment variable. I hv written the following piece of code,

RE: subant to reference a task outside of build.xml?

2005-03-22 Thread David Levy
I think there are a few problems you may be facing. From the looks of it, you're importing the file "properties.xml" when you should be importing "package.xml". If "properties.xml" is a properties file, it should be brought in to the script via a property taskdef: The other issue you have is you

Re: Conditions

2005-03-22 Thread Antoine Levy-Lambert
If you do not use ant-contrib, you have to have 2 targets when something is dependent upon a condition > So I'm trying to execute the mail task based on a conditional statement. > I'm not sure if I'm doing this incorrectly or not. Basically, what I > want out of this target

Re: AW: how to read from an enviroment variable

2005-03-22 Thread Antoine Levy-Lambert
Hello Markus, did you restart your Eclipse after having changed the environment with the Control Panel ? Antoine > [EMAIL PROTECTED] wrote: > > > ? > > > > > I setted the path variable in windows --> pref --> linked ressources > this one I want to use it as vm arguments. > > I tried now to do i

RE: Conditions

2005-03-22 Thread Bill Rich
To avoid the procedural logic you could have done the following: This is more within the philosophy/architecture of Ant. Bill -Original Message- From: Rich Harris [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 11:10 AM To: Ant Users List Subject: RE: Conditions Th

Re: AW: Making copy NEVER overwrite

2005-03-22 Thread Antoine Levy-Lambert
I would use the selector something like Cheers, Antoine > set the read-only flag to the files? > > Jan > > > -Ursprüngliche Nachricht- > > Von: David Resnick [mailto:[EMAIL PROTECTED] > > Gesendet am: Dienstag, 22. März 2005 11:40 > > An: 'Ant Users List' > > Betreff: Makin

Re: Problem picking up correct view in p4labelsync

2005-03-22 Thread Antoine Levy-Lambert
Hello Suzanne, can you try this selecting the view you want to use when you create the Perforce label, rather than when doing the p4labelsync ? Cheers, Antoine I am > I am using Ant 1.6.2 and trying to do a p4labelsync. First I create the > label, then do the labelsync which "tags" the appropriat

RE: Conditions

2005-03-22 Thread Rich Harris
Thanks David. I set this up and worked like a charm: The ${component} release candidate build is now available! Please rsync to: ${deploy.system} ${deploy.path}/${version}.war -Ri

Re: AW: Making copy NEVER overwrite

2005-03-22 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: > selector? Or the selector... -Matt > > Jan > > > -Ursprüngliche Nachricht- > > Von: David Resnick [mailto:[EMAIL PROTECTED] > > Gesendet am: Dienstag, 22. März 2005 14:19 > > An: 'Ant Users List' > > Betreff: RE: Making copy NEVER overwrite > > > > Th

Problem picking up correct view in p4labelsync

2005-03-22 Thread Suzanne Dorman
I am using Ant 1.6.2 and trying to do a p4labelsync. First I create the label, then do the labelsync which "tags" the appropriate files to the label. Identifying which files will get tagged is done via the view option. Here is my simplified xml:

RE: Making copy NEVER overwrite

2005-03-22 Thread Burgess, Benjamin
" the second time around the original is newer than the backup" Is this because your copy target the first time around does not have preservelastmodified="true"? Ben -Original Message- From: David Resnick [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 5:40 AM To: 'Ant Users Lis

AW: Making copy NEVER overwrite

2005-03-22 Thread Jan . Materne
selector? Jan > -Ursprüngliche Nachricht- > Von: David Resnick [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 22. März 2005 14:19 > An: 'Ant Users List' > Betreff: RE: Making copy NEVER overwrite > > Thanks for the suggestion. > > The problem with that is that I would need to set

RE: Making copy NEVER overwrite

2005-03-22 Thread David Resnick
Thanks for the suggestion. The problem with that is that I would need to set failonerror to off, but I don't want to do that. -David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 13:41 To: user@ant.apache.org Subject: AW: Making copy

AW: Making copy NEVER overwrite

2005-03-22 Thread Jan . Materne
set the read-only flag to the files? Jan > -Ursprüngliche Nachricht- > Von: David Resnick [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 22. März 2005 11:40 > An: 'Ant Users List' > Betreff: Making copy NEVER overwrite > > I am making a backup of some files which I then filter back i

Making copy NEVER overwrite

2005-03-22 Thread David Resnick
I am making a backup of some files which I then filter back into the original. Unfortunately, because of the way the targets are set up, this is done more than once. I want the copy task to perform the backup only if the backup files don't exist. Setting overwrite to false doesn't help me because