ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs
Date Fri, 17 Nov 2000 14:10:13 GMT

Sweet! :-)  I like the mapper syntax.  Thats a really nice concept.

Glenn McAllister
Software Developer. IBM Toronto Lab, (416) 448-3805
"An approximate answer to the right question is better than the
right answer to the wrong question." - John W. Tukey

Please respond to

Subject:  cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs

bodewig     00/11/17 02:25:10

  Modified:    src/main/org/apache/tools/ant/taskdefs
  Changed the copy task to support a nested mapper.

  This adds a lot of power to copy and move, we can drop the optional
  RenameExt task for example as

  <renamext srcdir="src" destdir="dest" fromextension=".java.keep"
            toextension=".java" replace="true" />

  can now be written as

  <move todir="dest" overwrite="true">
    <fileset dir="src" />
    <mapper type="glob" from="*.java.keep" to="*.java" />

  but more difficult transformations can be done as well.

View raw message