RE: javac multiple packages

2006-07-20 Thread Rainer Noack
What's about ant-contrib's / task? Rainer > -Original Message- > From: Chun Ji [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 20, 2006 12:00 AM > To: Martin Gainty > Cc: Ant Users List > Subject: RE: javac multiple packages > > > > I have just tried, no difference. > My jdk version

Copying files

2006-07-20 Thread Mark Probert
Hi .. I have a build that uses an automatically generated manifest file. When I start the build, I cannot be certain that my dest directory (classes/) is going to exist, so I have a task to create it. My question is, how do I then copy the manifest file into that directory? My jar task lo

RE: Ant build Time

2006-07-20 Thread Burgess, Benjamin
If the target you are calling MyApp, it is no surprise that the build will be very long and probably explodes in memory usage. Antcall is not meant to be used like this - instead target MyApp should simply depend on create-ear-file. Ben -Original Message- From: Hanmay Udgiri [mailto:[EMA

RE: problem with

2006-07-20 Thread Anderson, Rob (Global Trade)
> -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 20, 2006 1:00 PM > To: Ant Users List > Subject: RE: problem with > > --- "Anderson, Rob (Global Trade)" > <[EMAIL PROTECTED]> wrote: > > > A macrodef would probably belong outside of a target. >

Re: Error using ant under cygwin like environment

2006-07-20 Thread Martin Gainty
I think he may have not exported the variable to verify.. echo $SHELL if your shell is '/bin/bash' be sure to export all the variables (so that child processes (ant) variable will assume the new value) HTH, M * This email messag

RE: problem with

2006-07-20 Thread Matt Benson
--- "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> wrote: > A macrodef would probably belong outside of a > target. Usually, but for completeness' sake I'd like to point out that a common exception would be conditional macro definition. > Also, I don't see > where you are actually executing

Re: Ant build Time

2006-07-20 Thread Matt Benson
Well... one of the first suggestions someone (Ben Burgess?) made to you was to get rid of your antcalls. They eat time and memory and can be worked around roughly 99.5% of the time: assuming create-ear-file depends on create-war-file, etc., etc. as you sort of comment below. Additionally you m

Re: problem with

2006-07-20 Thread Matt Benson
call the defined macro? --- Mayuresh Kshirsagar <[EMAIL PROTECTED]> wrote: > Hi I am trying the following block: > > > > > > > > > > > >

RE: javac multiple packages

2006-07-20 Thread Matt Benson
Ignore that. I didn't read the original request well enough at first. :) /? -Matt --- Matt Benson <[EMAIL PROTECTED]> wrote: > Have you looked at ant-contrib's > task? > > -Matt > > --- Chun Ji <[EMAIL PROTECTED]> wrote: > > > > > I have just tried, no difference. > > My jdk version is

RE: problem with

2006-07-20 Thread Anderson, Rob (Global Trade)
A macrodef would probably belong outside of a target. Also, I don't see where you are actually executing the task you define with the macrodef. What is the output of your build? -Rob Anderson > -Original Message- > From: Mayuresh Kshirsagar [mailto:[EMAIL PROTECTED] > Sent: Thursday, Ju

Re: Ant build Time

2006-07-20 Thread Martin Gainty
I aint complaining but..The svn task is where maven beats Ant - Granted I think its far less inutitive to work with (but with complexity comes a more robust feature-set) Look at this- e.g. maven.repo.remote=\ http://www.ibiblio.org/maven,\ file://BlahBlah,\ What maven svn task does is get source

Re: Ant build Time

2006-07-20 Thread Hanmay Udgiri
sorry its typo mistakes On 7/20/06, Hanmay Udgiri <[EMAIL PROTECTED]> wrote: I am Giving the code we are using for creating EAR file. it is small any file... ... .. .. .. .. .. ..

Re: Ant build Time

2006-07-20 Thread Martin Gainty
Hanmay- Why are there 2 init targets? M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this

Re: Ant build Time

2006-07-20 Thread Hanmay Udgiri
I am Giving the code we are using for creating EAR file. it is small any file... ... .. .. .. .. .. .. other jar steps. Any suggestion for improvements will be of great HEL

RE: Error using ant under cygwin like environment

2006-07-20 Thread Anderson, Rob (Global Trade)
Not sure. Ant sets up it's own classpath based on $ANT_HOME. I have heard of people having problems when they have a classpath set in their environment, but I am not sure if this was causing your problem. I don't have any classpath set in my environment. Try this... $ unset CLASSPATH $ ant Does i

RE: javac multiple packages

2006-07-20 Thread Matt Benson
Have you looked at ant-contrib's task? -Matt --- Chun Ji <[EMAIL PROTECTED]> wrote: > > I have just tried, no difference. > My jdk version is : jdk1.5.0_01. > My Ant version is : 1.6.2. > My OS is: Linux. > > > -CJ > > > -Original Message- > From: Martin Gainty [mailto:[EMAIL P

RE: replace section of file, loadFile, replaceregex, filterchain

2006-07-20 Thread Gaz Smith
Excellent!! Thanks a lot :-) After a bit of learning about XPath I've managed to achieve the same in a much more elegant way, --- "Rebhan, Gilbert" <[EMAIL PROTECTED]> wrote: > Hi, > > when working (replace ...) with xml files i would go > with the xml task = > > http://www.oopsconsultancy.c

problem with

2006-07-20 Thread Mayuresh Kshirsagar
Hi I am trying the following block:

Re: Ant build Time

2006-07-20 Thread David TROGDON
I don't think ANT adds significant time to a build. What does add time is the number files being compiled and files possibly being moved, copied etc. especially across a network. I routinely do builds composed of several thousands of files. Several years ago my build structure crossed several net

RE: replace section of file, loadFile, replaceregex, filterchain

2006-07-20 Thread Rebhan, Gilbert
Hi, when working (replace ...) with xml files i would go with the xml task = http://www.oopsconsultancy.com/software/xmltask/ then you can select the specific nodes via xpath Regards, Gilbert -Original Message- From: Gaz Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006

Re: Ant build Time

2006-07-20 Thread Hanmay Udgiri
Hi Actually It uses to take around 7-8 minutes but now it takes around 14 min. One factor is increase on No of JAVA files. Earlier we had less no of files,now we have twice of earlier. Is this could be one of the reaseon On 7/19/06, Martin Gainty <[EMAIL PROTECTED]> wrote: ant -d will sho

replace section of file, loadFile, replaceregex, filterchain

2006-07-20 Thread Gaz Smith
Hey, wonder if you guys can help me? I'm trying to use ant to copy a portion of one text file in to another text file. I have specific markers that I can use for this. The source file has the format shown below, // - src file start a few lines of text One or more lines of stuff