RE: If anybody is interested.. [foreach] task which doesnt run out of memory.

2002-09-19 Thread EXT / FOCAL MALAPRADE Roland
Wow! Cool! thanks a lot. I'll try it out. Roland. -Message d'origine- De : Geoff Meakin [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 18 septembre 2002 18:40 À : Ant Users List Objet : RE: If anybody is interested.. [foreach] task which doesnt run out of memory. Dear Roland, Yes

RE: If anybody is interested.. [foreach] task which doesnt run ou t of memory.

2002-09-19 Thread EXT / FOCAL MALAPRADE Roland
]] Envoyé : jeudi 19 septembre 2002 09:50 À : 'Ant Users List' Objet : RE: If anybody is interested.. [foreach] task which doesnt run ou t of memory. Wow! Cool! thanks a lot. I'll try it out. Roland. -Message d'origine- De : Geoff Meakin [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 18

Questions about foreach task and properties and memory

2002-09-19 Thread EXT / FOCAL MALAPRADE Roland
Hi everybody, sorry if this is a bit long :) I have made a build script to do the following: - download a bunch of folders containing zip files off an FTP server (one folder for each month) - create a report for each month in a csv file by: - checking which zip files are there (there are 50

RE: Questions about foreach task and properties and memory

2002-09-19 Thread Geoff Meakin
1. Is this memory usage normal, or is it a bug in foreach ? The difficulty is foreach uses an implicit {antcall} mechanism (e.g. the antcall task Now many people claim that this doesnt have memory leaks unless the called tasks have javac in them (which has known memory leaks), however, I think

RE: If anybody is interested.. [foreach] task which doesnt run ou t of memory.

2002-09-19 Thread Geoff Meakin
:[EMAIL PROTECTED]] Sent: 19 September 2002 10:04 AM To: 'Ant Users List' Subject: RE: If anybody is interested.. [foreach] task which doesnt run ou t of memory. Hi Geoff, I gave it a bash, the problem is that the example I gave you is a cut down version of my build script (obviously), and it wasn't

RE: If anybody is interested.. [foreach] task which doesnt run out of memory.

2002-09-18 Thread EXT / FOCAL MALAPRADE Roland
Hi Geoff, I was wondering, can foreach2 tasks be nested inside each other? Roland. -Message d'origine- De : Matt Benson [mailto:[EMAIL PROTECTED]] Envoye : vendredi 13 septembre 2002 17:09 A : Ant Users List Objet : RE: If anybody is interested.. [foreach] task which doesnt run out

RE: If anybody is interested.. [foreach] task which doesnt run out of memory.

2002-09-18 Thread Geoff Meakin
Yes, it appears so: target name=main foreach2 param=letter list=a,b,c do foreach2 param=number list=1,2,3 do echo message=combi is ${letter}${number}/ /do /foreach2 /do /foreach2 /target Gives the output: combi is a1 combi is a2 combi is a3

RE: If anybody is interested.. [foreach] task which doesnt run out of memory.

2002-09-18 Thread EXT / FOCAL MALAPRADE Roland
you know why this is? /target-Message d'origine- De : Geoff Meakin [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 18 septembre 2002 15:09 À : Ant Users List Objet : RE: If anybody is interested.. [foreach] task which doesnt run out of memory. Yes, it appears so: target name=main foreach2

RE: If anybody is interested.. [foreach] task which doesnt run out of memory.

2002-09-18 Thread Matt Benson
Now THAT is cool! -Matt --- Geoff Meakin [EMAIL PROTECTED] wrote: Yes, it appears so: target name=main foreach2 param=letter list=a,b,c do foreach2 param=number list=1,2,3 do echo message=combi is ${letter}${number}/ /do /foreach2 /do

RE: If anybody is interested.. [foreach] task which doesnt run out of memory.

2002-09-18 Thread Geoff Meakin
place. Thanks for pointing this out :) Cheers -Geoff -Original Message- From: EXT / FOCAL MALAPRADE Roland [mailto:[EMAIL PROTECTED]] Sent: 18 September 2002 02:42 PM To: 'Ant Users List' Subject: RE: If anybody is interested.. [foreach] task which doesnt run out of memory. I've been

If anybody is interested.. [foreach] task which doesnt run out of memory.

2002-09-13 Thread Geoff Meakin
I've adapted the [foreach] task so that it doesnt run out of memory, because it no longer uses an implicit antcall, but has nested tasks in it instead. Its also a lot faster. I.e. foreach2 param=srcfile fileset dir=base include name=**/*.txt/ /fileset do echo message=Found

Re: Avoiding foreach task

2002-09-11 Thread Stefan Bodewig
On Wed, 11 Sep 2002, Matthew Rawlings [EMAIL PROTECTED] wrote: By searching the mail lists I understand using the foreach task is frowned upon. Is this correct? The short answer is yes. I think you've found the long answer by reading the archives. How can I gunzip all the files

Avoiding foreach task

2002-09-10 Thread Matthew Rawlings
By searching the mail lists I understand using the foreach task is frowned upon. Is this correct? How can I gunzip all the files in a directory that match a pattern? The gunzip task only operates on one file at a time. What was the design decision not to make it operate on a fileset? Any

RE: Possible Modifications to ForEach Task

2002-07-10 Thread David Colton (ext. 799)
Stefan, All. Here is my hack to let the ant-contrib foreach task optionally inheritRefs. (Excuse the package naming - done for my convenience) ForEach.java I have only tested on what I want it to do and it seems to work as expected. I am blocked from using CVS to an external site so if you

RE: foreach task

2001-12-08 Thread Christopher Berry
Attached. It works w/ Ant 1.4 Cheers, -- Chris -Original Message- From: Zhao, Jasmine [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 6:15 PM To: '[EMAIL PROTECTED]' Subject: foreach task Hi Can anyone send me a copy for foreach task? thanx Jasmin

foreach task

2001-12-05 Thread Zhao, Jasmine
Hi Can anyone send me a copy for foreach task? thanx Jasmin - This message may contain privileged and/or confidential information subject to a confidentiality agreement or copyright material of Clarity International Ltd

RE: Error with the foreach task

2001-07-03 Thread Mark Womack
an official version and a directory of extra/optional task classes. as always, thanks! -Mark -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 8:24 PM To: [EMAIL PROTECTED] Subject: RE: Error with the foreach task See: http

Error with the foreach task

2001-07-02 Thread Mark Womack
This is probably something obvious that I am missing. But I have defined the following targets: taskdef name=foreach classname=org.apache.tools.ant.taskdefs.optional.ForeachTask/ target name=build_experimental depends=init, prepare_dirs foreach target=build_experimental_dir type=dir param

RE: Error with the foreach task

2001-07-02 Thread Mark Womack
-Original Message- From: Mark Womack Sent: Monday, July 02, 2001 11:48 AM To: '[EMAIL PROTECTED]' Subject: Error with the foreach task This is probably something obvious that I am missing. But I have defined the following targets: taskdef name=foreach classname

RE: Error with the foreach task

2001-07-02 Thread Diane Holt
besides javac, and they crash with the same error. So, I am stumped. I am using Ant 1.3. Is that an issue? Thanks, -Mark -Original Message- From: Mark Womack Sent: Monday, July 02, 2001 11:48 AM To: '[EMAIL PROTECTED]' Subject: Error with the foreach task

RE: Foreach task)

2001-06-13 Thread Brett Knights
Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 1:04 AM To: [EMAIL PROTECTED] Subject: Re: Foreach task) Peter Donald [EMAIL PROTECTED] wrote: At 09:29 AM 6/12/01 +0200, Stefan Bodewig wrote: Peter Donald [EMAIL PROTECTED] wrote: At 09:20 AM

Re: looping (RE: Foreach task)

2001-06-12 Thread Peter Donald
At 12:16 PM 6/11/01 -0400, [EMAIL PROTECTED] wrote: = On Mon, 11 Jun 2001 23:06:34 +1000, Peter Donald [EMAIL PROTECTED] said: [...] However the usecase that ant needs is executing the same set of tasks with different parameters. ie Repeat tasks t1 - tn with different values for A, B and C

Re: Foreach task)

2001-06-12 Thread Peter Donald
At 08:09 AM 6/12/01 +0200, Stefan Bodewig wrote: [EMAIL PROTECTED] wrote: 'There should be no argument to any ant task which takes only a singular argument. It should take a list of possibly one item, and promote a singular argument to a list of one if necessary.' I've been playing with

Re: Foreach task)

2001-06-12 Thread Stefan Bodewig
Peter Donald [EMAIL PROTECTED] wrote: (3) Remove iteration from all tasks and core and implement it in another layer ;) In another layer that is not a task? Stefan

Re: Foreach task)

2001-06-12 Thread Stefan Bodewig
Peter Donald [EMAIL PROTECTED] wrote: At 09:20 AM 6/12/01 +0200, Stefan Bodewig wrote: Peter Donald [EMAIL PROTECTED] wrote: (3) Remove iteration from all tasks and core and implement it in another layer ;) In another layer that is not a task? yup ;) Care to expand? Stefan

Re: Foreach task)

2001-06-12 Thread Peter Donald
At 09:29 AM 6/12/01 +0200, Stefan Bodewig wrote: Peter Donald [EMAIL PROTECTED] wrote: At 09:20 AM 6/12/01 +0200, Stefan Bodewig wrote: Peter Donald [EMAIL PROTECTED] wrote: (3) Remove iteration from all tasks and core and implement it in another layer ;) In another layer that is not a

Re: Foreach task)

2001-06-12 Thread Stefan Bodewig
Peter Donald [EMAIL PROTECTED] wrote: At 09:29 AM 6/12/01 +0200, Stefan Bodewig wrote: Peter Donald [EMAIL PROTECTED] wrote: At 09:20 AM 6/12/01 +0200, Stefan Bodewig wrote: Peter Donald [EMAIL PROTECTED] wrote: (3) Remove iteration from all tasks and core and implement it in another layer

RE: looping (RE: Foreach task)

2001-06-12 Thread Christopher Berry
The way I'd solve this problem in app management ( which is not necessarily the same as the problem in ant ) is to have a separate task/script/whatever that reproducably generated a list of the interesting apps. This would probably start with something vaguely like a find . -name

Re: looping (RE: Foreach task)

2001-06-11 Thread Peter Donald
At 08:02 AM 6/11/01 -0400, [EMAIL PROTECTED] wrote: So: What is the essence of 'iteration' for the purpose of this debate? iteration for the purpose of this debate is something like foreach .../. Some people try to confuse the definition to serve an agenda or because of hangups from other build

RE: Foreach task)

2001-06-11 Thread John . D . Casey
-Original Message- From: asr [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 11:17 AM To: ant-user Cc: asr Subject: Re: looping (RE: Foreach task) = On Mon, 11 Jun 2001 23:06:34 +1000, Peter Donald [EMAIL PROTECTED] said: [...] However the usecase that ant needs is executing the same set

RE: Foreach task)

2001-06-11 Thread Peter Vogel
PROTECTED]] Sent: Monday, June 11, 2001 11:17 AM To: ant-user Cc: asr Subject: Re: looping (RE: Foreach task) = On Mon, 11 Jun 2001 23:06:34 +1000, Peter Donald [EMAIL PROTECTED] said: [...] However the usecase that ant needs is executing the same set of tasks

RE: looping (RE: Foreach task)

2001-06-11 Thread Christopher Berry
Greetings, As the one who (innocently) began this debate, I will chime in. Although I suspect that this argument has become religious, and as such, neither side is listening to the other anymore... In my current build, I have used foreach three times, and I do not see an alternate approach.

RE: looping (RE: Foreach task)

2001-06-11 Thread Peter Vogel
:18 PM Subject: RE: looping (RE: Foreach task) Greetings, As the one who (innocently) began this debate, I will chime in. Although I suspect that this argument has become religious, and as such, neither side is listening to the other anymore... In my current build, I have used foreach three

RE: Foreach task)

2001-06-11 Thread John . D . Casey
PROTECTED]] Sent: Monday, June 11, 2001 3:19 PM To: ant-user Subject: RE: looping (RE: Foreach task) Greetings, As the one who (innocently) began this debate, I will chime in. Although I suspect that this argument has become religious, and as such, neither side is listening to the other anymore

RE: Foreach task)

2001-06-11 Thread Nasgowitz, Mark (MED, GEMS-IT)
I also feel the foreach task is worth including in Ant. This is non-java code set but I find Ant works very well. The foreach task allows me to look in a directory and process all property files that match. Each property file is then loaded using the property task. This allows me to have

Re: looping (RE: Foreach task)

2001-06-11 Thread asr
= On Mon, 11 Jun 2001 13:18:50 -0700, Christopher Berry [EMAIL PROTECTED] said: As the one who (innocently) began this debate, I will chime in. Although I suspect that this argument has become religious, and as such, neither side is listening to the other anymore... I like to view myself

Re: looping (RE: Foreach task)

2001-06-11 Thread Stefan Bodewig
It's a little silly to have the same discussion on two different lists with slightly different sets of people ... I don't want to argue iteration in general here, just look into Christopher's usecases. Christopher Berry [EMAIL PROTECTED] wrote: 1) Loop over all TAR.GZ files in a directory and

Re: Foreach task)

2001-06-11 Thread Stefan Bodewig
[EMAIL PROTECTED] wrote: 'There should be no argument to any ant task which takes only a singular argument. It should take a list of possibly one item, and promote a singular argument to a list of one if necessary.' I've been playing with that idea for some time as well - and came to the

RE: looping (RE: Foreach task)

2001-06-10 Thread Peter Vogel
: Friday, June 01, 2001 11:49 PM To: [EMAIL PROTECTED] Subject: Re: looping (RE: Foreach task) Hi There, the foreach task is also what I'm looking for! What I don't understand: Why isn't it included in the CVS rep. in the taskdefs.optional package (at least I can't find it)? Where can I get

RE: looping (RE: Foreach task)

2001-06-10 Thread Jesse Tilly
: Sunday, June 10, 2001 3:47 AM To: '[EMAIL PROTECTED]' Subject: RE: looping (RE: Foreach task) Because our parents (oops, I mean the ant committers) are trying to shelter us from dangerous ideas. We're all just a bunch of ignorant children who cannot be trusted to use a tool

RE: looping (RE: Foreach task)

2001-06-10 Thread Peter Vogel
I have been examining Python as a basis for about two months mainly because my research has shown that a descriptive build language will not properly solve complex build situations. AS long as you are following this path, check out cons which is perl-based but there is also a Python port

Re: looping (RE: Foreach task)

2001-06-02 Thread Mike Groezinger
Hi There, the foreach task is also what I'm looking for! What I don't understand: Why isn't it included in the CVS rep. in the taskdefs.optional package (at least I can't find it)? Where can I get the latest and maintained version ? Cheers Mike Nasgowitz, Mark (MED, GEMS-IT) schrieb

RE: looping (RE: Foreach task)

2001-06-01 Thread Nasgowitz, Mark (MED, GEMS-IT)
Thanks Chris, The foreach task with the truncate option is just what I need! The problem is that I have been using ant for build, test and publish results for C code but am unfamiliar with Java. Is it possible to get the tasks 'pre-compiled' so they can be dropped in? I plan on learning Java

RE: looping (RE: Foreach task)

2001-05-31 Thread Christopher Berry
Greetings, In keeping with the spirit of this marvelous list, I am posting back an updated version of the optional foreach Task. It had a bug in it which I have fixed. In addition, I have also added a type=truncate, which passes on only the base filename. (i.e. a file named myfile.tar.gz

Re: Foreach-task?

2001-01-30 Thread Nico Seessle
Title: RE: "Foreach"-task? - Original Message - From: Tim Vernum To: '[EMAIL PROTECTED]' Sent: Tuesday, January 30, 2001 12:59 AM Subject: RE: "Foreach"-task? There is currently no foreach-task. (And maybe there will never be one). A

Re: Foreach-task?

2001-01-29 Thread Nico Seessle
There is currently no foreach-task. (And maybe there will never be one). A solution would be 1) to write your own task or 2) to use the script-task to solve this. Nico

RE: Foreach-task?

2001-01-29 Thread Tim Vernum
Title: RE: Foreach-task? There is currently no foreach-task. (And maybe there will never be one). A solution would be 1) to write your own task or 2) to use the script-task to solve this. Or you can use XSLT. The issues with that are: 1) Ant doesn't currently send the build.xml