ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ray Madigan" <>
Subject Help: ForEach2
Date Thu, 03 Jul 2003 14:23:35 GMT
I have been using the ant task foreach2 for quite a while with
no problems, until I attempted to use it with the concat task.

I am attempting to build a file with parts from different locations.

It looks like this:

<concat destfile="foo.xml" append="true">
  <filelist dir="." files="pre.xml"/>

<foreach2 param="bar" list="a,b,c,d,e">
    <concat destfile="foo.xml" append="true">
      <filelist dir="${bar}" files="body.xml"/>

<concat destfile="foo.xml" append="true">
  <filelist dir="." files="post.xml"/>

The resultant file has the correct pre and post sections,
but the body has each body section duplicated based upon
its position in the foreach2 list (ie the third element 'c'
has its body segment duplicated three times).

Has anyone experienced anything like this?
Does anyone use foreach2?

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

View raw message