You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Alex Smith <as...@hotmail.com> on 2000/07/22 05:25:54 UTC
Chmod, directories and file permissions
Hello,
In ant 1.1 <chmod dir="bar" includes="**/*.sh" perm="u+x"> has no effect but
<chmod file="bar/foo.sh" perm="u+x"> works. Is this an error on my part or a
bug?
Speaking of file permissions, why doesn't copydir/copyfile preserve them?
This mishap requires me to chmod them "manually" when copying
files over from the build directory to lib.
Thanks,
Alex
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Re: Chmod, directories and file permissions
Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "AS" == Alex Smith <as...@hotmail.com> writes:
AS> Speaking of file permissions, why doesn't copydir/copyfile
AS> preserve them? This mishap requires me to chmod them "manually"
AS> when copying files over from the build directory to lib.
This is a platform specific issue, no windows user would want useless
chmod attempts in copydir of course.
Even worse Java doesn't have a notion of file permissions. To find out
what the original permissions might have been you'd need to evaluate
the result of a (forked) stat call for each file. Seems like a lot of
work for Ant to do.
Stefan