DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5661>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5661

File Permissions not preserved in replace task





------- Additional Comments From [EMAIL PROTECTED]  2002-01-02 15:08 -------
In the short run, copying file and directory permissions could be accomplished 
by creating a <copypermissions> task which extends/emulates the <copy> task but 
which would only copy file permissions.  As this seems to be more of an issue 
with UNIX OS's and Perl tends to be widely available, a Perl script could be 
invoked for that instance of the task which would receive via its stdin a 
paired 
list of source and destination files or directories.  For each line it reads 
in, it would do a stat() on the source file and set the corresponding 
permissions on the destination file.  After the list of files, the task 
would close its output stream to Perl causing the script to exit.  Since this 
Perl script would be invoked only once for the task instance rather than on a 
per file basis, performance should be very good.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to