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 28320] - copy task preserving permissions
Date Tue, 13 Apr 2004 11:23:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28320>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

copy task preserving permissions





------- Additional Comments From stevel@apache.org  2004-04-13 11:23 -------
We have mis-explained <chmod>. 

<chmod> is a noop on Windows. So you put it in your code to set the exe
permissions. On unix, after the task is invoked, the target files are executable
because the permissions were set. On windows, after the task is invoked, the
target files are executable because there was no need to set the permissions.

To repeat: use chmod after your copy, it has the desired outcome on all platforms.

Also, when archiving stuff up, use <tarfileset> to set the permissions on a tar
file. It will do this regardless of the platform you are running on.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message