ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28320] copy task preserving permissions
Date Fri, 27 May 2011 21:40:39 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=28320

--- Comment #20 from Igor Urisman <igor@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.

Mime
View raw message