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
]]
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
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
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
:[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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
-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
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
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.
: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
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
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
= 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
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
[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
: 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
: 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
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
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
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
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
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
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
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
47 matches
Mail list logo