ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <adam....@cyberspaceroad.com>
Subject foreach output
Date Sat, 04 Oct 2003 15:54:38 GMT
I'm using foreach to copy a list of jars from one dir to another. For 
each iteration of an item in the list, foreach outputs the build.xml 
filename and the number of files copied, which is always 1.

Is there a mechanism I can use to inhibit this output and instead to 
output the count of all moved files at the end of the list?

<target ...>
  <foreach list="${external.jars}"
     delimiter=":"
        target="jarcopy"
         param="jarfile">
   <param name="jartodir"
         value="${deploy.home}/${app.name}/WEB-INF/lib"/>
  </foreach>
</target>

<target name="jarcopy" depends="">
  <copy todir="${jartodir}" file="${jarfile}" />
</target>

This is the output I want to inhibit for every iteration:

buildFile==/home/adam/src/projects/linklibrary/build.xml

jarcopy:
      [copy] Copying 1 file to 
/usr/java/jakarta-tomcat-5.0.12/webapps/linklib/WEB-INF/lib



Thanks
Adam


-- 
ant 1.6alpha + java 1.4.2 on Linux 2.4.20 RH9


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message