You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2011/05/27 23:40:39 UTC

DO NOT REPLY [Bug 28320] copy task preserving permissions

https://issues.apache.org/bugzilla/show_bug.cgi?id=28320

--- Comment #20 from Igor Urisman <ig...@topright.com> 2011-05-27 21:40:39 UTC ---
The following note is completely bogus:
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. 

Ant is the application here, not the build script.  Java never claimed to be an
OS. But there's nothing that keeps Ant from knowing what OS it's running on and
if it's Unix, use a system call to do the OS appropriate copy.  Indefensibly
bogus.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.