ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <>
Subject Re: multiple args to java task
Date Mon, 20 Oct 2003 15:09:35 GMT
Last week, I implemented a version of foreach that
used sequential non-antcall as an optional element.
Unfortunately it was not backward compatible with
ant 1.5. So I made a new task - for which drops the
target and has a sequential in the same way as <macrodef>
(it is implemented by using macrodef).

The usage is:

<for list="a,b,c" param="x">
      <echo>x is ${x}</echo>

<for param="file">
      <fileset dir="." includes="**/*.xml"/>
      <echo>file is ${file}</echo>

This is currently in cvs - without a manual entry.
It only works with ant1.6beta2 or greater.


On Monday 20 October 2003 15:56, Jacob Kjome wrote:
> At 08:24 AM 10/20/2003 +0200, you wrote:
> >Use AntContribs <foreach> (or the new <for>) task to iterate over the
> > list?
> >
> >Jan
> I know that <foreach> uses <antcall> internally.  Does <for> also do
> that?  Seems to me that ant-contrib should have a non-antcall looping task,
> especially to use in conjunction with the new Ant-1.6 <macrodef>.
> Jake
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message