diff --git a/docs/manual/CoreTasks/copy.html b/docs/manual/CoreTasks/copy.html index 20fb2715e..56292a294 100644 --- a/docs/manual/CoreTasks/copy.html +++ b/docs/manual/CoreTasks/copy.html @@ -2,7 +2,7 @@
-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.