path structures in different build files

2001-12-03 Thread Nathan Coast
Hi, I have a path structure that I have defined in one build file, this build file then calls a second build file. If I try to refer to the path structure I defined in the first file from the second file I get an error: Reference webapp.classpath not found. file 1 contains: path

Checking if an Application is Running while building

2001-12-03 Thread Imran Bohoran
Hi All I want to delete some of the files deployed in my apperver when my build is in the process. But If the appserver is running I am not able to delete them since the it'll be in use. Is it possible to give an appropriate message to the user saying that he should shutdown the appserver to

Re: path structures in different build files

2001-12-03 Thread Erik Hatcher
Currently the ant task only transfers across build listeners, task definitions, data type definitions, and properties. References are not carried over. It seems like a good enhancement request, although how that works and maintain backwards compatibility is the main issue to address. Erik

Substring or Substitution in ANT

2001-12-03 Thread Hannes van der Merwe
Is there an existing task that can be used to get a substring of a String or substitute a part of a String with something else? Hannes van der Merwe Momentum Employment Benefits (IT) Telephone : (011) 685 4306 Email : [EMAIL PROTECTED] E-mail disclaimer Confidentiality Warning

RE: path structures in different build files

2001-12-03 Thread Matthieu Bentot
I wrote and sent a patch to do exactly that 2 weeks ago. Matthieu -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 12:18 PM To: Ant Users List Subject: Re: path structures in different build files Currently the ant task only

Re: setting property

2001-12-03 Thread Diane Holt
--- Erik Hatcher [EMAIL PROTECTED] wrote: property environment=env / property name=env.PROJECT_HOME value=c:\project/ property name=project.home value=env.PROJECT_HOME/ Actually, you'll want that to be value=${env.PROJECT_HOME}. Diane = ([EMAIL

Re: newbie: Now to append newline.

2001-12-03 Thread Stefan Bodewig
From: Stefan Bodewig [EMAIL PROTECTED] echo file=${classes.dir}/properties/release.txt append=true /echo OK, this doesn't work because of XML's notion of ignorable whitespace. We could fix that by supporting the xml:space attribute as described in the XML spec

Re: newbie: Now to append newline.

2001-12-03 Thread Manik Surtani
How about enclosing it in CDATA tags? E.g., echo ![CDATA[ ]]/echo ? Cheers, Manik Stefan Bodewig wrote: [EMAIL PROTECTED]"> From: Stefan Bodewig [EMAIL PROTECTED] echo file="${classes.dir}/properties/release.txt" append="true"/echo OK, this doesn't work because of

Re: newbie: Now to append newline.

2001-12-03 Thread Stefan Bodewig
On Mon, 03 Dec 2001, Manik Surtani [EMAIL PROTECTED] wrote: How about enclosing it in CDATA tags? I thought it should work, but when I tried it, it didn't append anything. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Fileset support for unjar/unwar/unzip

2001-12-03 Thread Magesh Umasankar
On Mon, 03 Dec 2001 Stefan Bodewig wrote : On Fri, 30 Nov 2001, Paul Cody Johnston [EMAIL PROTECTED] wrote: Does anyone know if there are plans to support nested filesets for the unjar class of tasks? The CVS version of Ant already supports this. I'm not quite sure,

newbie - if-then-else task?

2001-12-03 Thread Russ Fink
Hello, I'm new at Ant and I will describe what I want to do -- followed with how I hope to do it. I'm trying to copy files from two sources, a system directory followed by a local directory. This is prior to a build, and I'm modifying an existing build file. What I want is to copy a file

Re: newbie - if-then-else task?

2001-12-03 Thread Diane Holt
You can use available. It doesn't just set a flag -- you can assign any value to the property it's (potentially) setting, so have the value be the path to the file it finds, then reference that property in your copy task. If you can use a nightly build rather than a release, you can do this more

Re: newbie - if-then-else task?

2001-12-03 Thread Erik Hatcher
Ha! I knew I'd find a way to get a correction on Diane if I waited long enough :) Actually the back-door hack for available is being left in (just with a nasty message if you overwrite a propertys value using it) - that was the curreent consensus, unfortunately. This may change before the

Re: newbie - if-then-else task?

2001-12-03 Thread Russ Fink
Okay - I think I understand. If I have 'dirs.orig' pointing to the global area, and dirs.local pointing to the local modified area, and want to put the file into 'dest', I can do the following: property name=frompath value=${dirs.orig}/foo/ available file=${dirs.local}/foo property=frompath

RE: Ant Perforce Tasks

2001-12-03 Thread Les Hughes
Hi Stuart, Can you supply a snippet of your buildfile? On my test box with p4change/ echo message=Change is ${p4.change}/ and ant -verbose I get [p4change] Execing p4 change -o [p4change] Execing p4 change -i [p4change] Change Number is 108 [echo] Change is 108 and in p4win Change

RE: Substring or Substitution in ANT

2001-12-03 Thread Li, Jerry
Believe or not, I am using pathconvert to get substring of tempPathName: pathconvert pathsep=${FILE_SEP} property=PackageName path id=tempPathName pathelement location=${SRC}/ /path

mapper support for filesets

2001-12-03 Thread Vishweshwar, Ghanakota
Hi, Is there a way to make fileset support mappers? The situation is this. we have xxx-ejb-jar.xml in descriptor directory and I want to include this in jar as ejb-jat.xml. I am wondering if there is a better way than copying to a temp location. thanks, vishu MMS firstam.com made the following

Ant 1.4.1 / JDK 1.4 beta3: '

2001-12-03 Thread Sebastien Boving
Hi, I'm having problems getting Ant 1.4.1 to work with JDK 1.4 beta3. I get the 'Cannot use classic compiler' error: [seb@ART002001] 150 # ant compile Buildfile: build.xml init: compile: [javac] Modern compiler is not available - using classic compiler [javac] Compiling 11 source files to

Silent execution of targets

2001-12-03 Thread David Blevins
Hi All, Simple question. Is there any option or flag (or anything) I can set on a target so that it doesn't output anything unless there is an error? Thanks, David -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Mail Task failing on QUIT message

2001-12-03 Thread Steve Loughran
- Original Message - From: William Ferguson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 03, 2001 6:56 PM Subject: Mail Task failing on QUIT message Hi, I was just wondering whether anyone else has seen the mail task play up when sending the QUIT message? The