From 0d8d34b93fc093976a0490142584b6cfe8e40d75 Mon Sep 17 00:00:00 2001
From: Steve Loughran
Copy a set of files to a directory
<copy todir="../dest/dir" > - <fileset dir="src_dir" > + <fileset dir="src_dir" > <exclude name="**/*.java"/> </fileset> </copy> <copy todir="../dest/dir" > - <fileset dir="src_dir" excludes="**/*.java"/> + <fileset dir="src_dir" excludes="**/*.java"/> </copy>
Copy a set of files to a directory appending
".bak
" to the file name on the fly
<copy todir="../backup/dir" > - <fileset dir="src_dir" /> + <fileset dir="src_dir" /> <mapper type="glob" from="*" to="*.bak"/> </copy>@@ -139,6 +139,11 @@ To use a fileset, the todir attribute must be set. </copy> +
Unix Note: file permissions are not retained when files +are copied; they end up with the default UMASK permissions instead. This +is caused by the lack of any means to query or set file permissions in the +current Java runtimes. If you need a permission preserving copy function, +use <exec executable="cp" ... > instead.
Copyright © 2000,2001 Apache Software Foundation. All rights Reserved.