ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20275] - copy tag does not preserve file permissions in linux.
Date Wed, 28 May 2003 07:11:16 GMT
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=20275>.
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=20275

copy tag does not preserve file permissions in linux.

bodewig@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From bodewig@apache.org  2003-05-28 07:11 -------
Copy can't preserve the permissions as there is no way to determine them from
within Java.

If you need to preserve the permissions, you have to choices:

(1) You know the permissions upfront - use <chmod> after <copy> to reset them.
(2) Use <apply> instead of <copy> to invoke cp.

There is no way to fix this without falling back to some native code.

Mime
View raw message