ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: is it possible...
Date Fri, 09 Feb 2001 07:49:37 GMT
james terry <james.terry@unikala.com> wrote:
>   to do this w/Ant?
>
>$ cd <dir>
>$ for i in `find . -print` ; do
>$ rm <dir2>/$i
>$ done
> 

Take a look at the new <apply> task in 1.3. I don't think you can do
what you need out of the box (as it insists on having the source file
on the command line) but it should be possible to tweak it to accept
something like

<apply executable="rm">
  <fileset dir="<dir>" />
  <mapper type="glob" from="*" to="<dir2>/*" />
  <targetfile />
</apply>

Stefan

Mime
View raw message