You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2001/12/04 04:06:04 UTC
cvs commit: jakarta-ant/docs/manual/CoreTasks copy.html
stevel 01/12/03 19:06:04
Modified: docs/manual/CoreTasks copy.html
Log:
PR: 5255
Clarified that <copy> doesnt preserve file perms on unix.
Revision Changes Path
1.6 +12 -7 jakarta-ant/docs/manual/CoreTasks/copy.html
Index: copy.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/copy.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- copy.html 2001/10/30 10:05:34 1.5
+++ copy.html 2001/12/04 03:06:04 1.6
@@ -2,7 +2,7 @@
<head>
<meta http-equiv="Content-Language" content="en-us">
-<title>Apache Ant User Manual</title>
+<title>Copy Task</title>
</head>
<body>
@@ -70,9 +70,9 @@
</tr>
<tr>
<td valign="top">includeEmptyDirs</td>
- <td valign="top">Copy empty directories included with the nested FileSet(s).
- Defaults to "yes".</td>
- <td valign="top" align="center">No</td>
+ <td valign="top">Copy empty directories included with the nested FileSet(s).
+ Defaults to "yes".</td>
+ <td valign="top" align="center">No</td>
</tr>
</table>
<h3>Parameters specified as nested elements</h3>
@@ -110,20 +110,20 @@
<p><b>Copy a set of files to a directory</b></p>
<pre>
<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>
</pre>
<p><b>Copy a set of files to a directory appending
"<code>.bak</code>" to the file name on the fly</b></p>
<pre>
<copy todir="../backup/dir" >
- <fileset dir="src_dir" />
+ <fileset dir="src_dir" />
<mapper type="glob" from="*" to="*.bak"/>
</copy>
</pre>
@@ -139,6 +139,11 @@
</copy>
</pre>
+<p><strong>Unix Note:</strong> 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.
<hr><p align="center">Copyright © 2000,2001 Apache Software Foundation. All rights
Reserved.</p>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>