You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/03/03 18:43:54 UTC

DO NOT REPLY [Bug 27416] - templating targets

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27416>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27416

templating targets

peter.reilly@corvil.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From peter.reilly@corvil.com  2004-03-03 17:43 -------
This is done by ant-contrib's <for> task.
For a number of reasons, this task will not migrate to
ant core.
get ant-contrib.jar, from
http://sourceforge.net/project/showfiles.php?group_id=36177
 and put in in $ANT_HOME/lib.
Using ant 1.6 one can do the following:
<project default="loop" antlib:ac="antlib:net.sf.antcontrib">
  <target name="loop">
    <ac:for param="file">
       <ac:path>
          <ac:fileset dir="${dir.where.files.are}"/>
       </ac:path>
       <ac:sequential>
          <echo>File is  @{file}</echo>
       </ac:sequential>
     </ac:for>
   </target>
</project>

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