AW: subant and memory problems

2006-05-31 Thread Jan.Materne
>Probably not. Ideally there would be a fork attribute for (and >) to ensure each sub-build runs in its own VM, >ensuring proper release of memory (when the process exists), >but it's never been done and is non-trivial, since a >cross-process logger/listener thing needs to be put in place, >an

AW: Targeting Multiple Environments

2006-05-31 Thread Jan.Materne
With that you could specify what to load: - ant -DENV.TARGET_ENV=??? - environment variable TARGET_ENV=??? - specify ENV.TARGET_ENV in build.properties (- falling back to a default value) If you want to load computer specific configuration you could do or for user specific Jan

Re: Copying files from dirs specified by libpath

2006-05-31 Thread glenn opdycke-hansen
Perhaps copy/flatten="true" provides the function you are looking for. --glenn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Copying files from dirs specified by libpath

2006-05-31 Thread Scot P. Floess
William: It seems I do this far too often and am corrected as there may be some stock ant task to do what you want ;) However, you can use ant-contrib tasks - specifically or which will give you iterative capabilities over a list/path. If you "wrap" that in a macrodef, well you can make i

RE: Copying files from dirs specified by libpath

2006-05-31 Thread William Press
Yes, that's correct. -Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 4:08 PM To: Ant Users List Subject: Re: Copying files from dirs specified by libpath William: So, just to clarify you want to iterate over each directory in libpath and

Re: Copying files from dirs specified by libpath

2006-05-31 Thread Scot P. Floess
William: So, just to clarify you want to iterate over each directory in libpath and copy the files from each into a directory? William Press wrote: Greetings, I have a libpath reference I'd like to use for copying files. Specifically, the libpath reference contains a list of directories,

Copying files from dirs specified by libpath

2006-05-31 Thread William Press
Greetings, I have a libpath reference I'd like to use for copying files. Specifically, the libpath reference contains a list of directories, and I would like to copy all of the files contained in these directories into a target directory. I realize I can convert this into a comma-delimited

Re: subant and memory problems

2006-05-31 Thread Dominique Devienne
On 5/31/06, Antoine Reilles <[EMAIL PROTECTED]> wrote: Also, if I change the build to avoid the use of subant, by inlining all subprocesses, the build goes farther, since it loads all tom's compiler classes only once, instead of once for each subant part. Using , just like , creates a new proje

RE: Targeting Multiple Environments

2006-05-31 Thread Anderson, Rob (Global Trade)
I use the same strategy, except I use plain old property files instead of xml. I have also added a user-friendly error message or input task if the TARGET_ENV prop is missing: You must specify TARGET_ENV on the command line. For example... ant -DTARGET_ENV=dev deploy Or: ... Why are you not s

Re: subant and memory problems

2006-05-31 Thread Antoine Reilles
On Tue, May 30, 2006 at 07:49:26AM -0500, Dominique Devienne wrote: > It's quite possible Ant or SubAnt itself hold on to too many > references. There have been fixes in Ant's ComponentHelper in the > past. But maybe Tom's compiler could be at fault as well, no? This > would need to be investigated

Targeting Multiple Environments

2006-05-31 Thread Kanjo, Samer
I am curious as to how others are using Ant to target multiple environments such as development, test, training, and production. In my world each environment typically has its own set of databases, servers, and application servers. What I have done is externalize all properties into a set of prope

AW: Insert a file into another at given point (not necessary at the end)

2006-05-31 Thread Jan.Materne
1.insert a static text at the beginning or at the end of multiple files 2.insert a static text at a text marker Easiest would be or Jan >-Ursprüngliche Nachricht- >Von: Dominique Devienne [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 30. Mai 2006 14:45 >An: Ant Users List >Bet