You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mia Takashima <m_...@yahoo.com> on 2000/12/14 00:32:27 UTC
how to preserve file permissions on
I'm using NetBSD, and when performing a copy with ant
the executable bit is not preserved.
I had to revert to the "cp -r" command.
I do not want to apply the chmod command on all
sub-directories, because some files do not need the
'x' bit.
Is there another way to do it?
-mia
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
RE: how to preserve file permissions on
Posted by Conor MacNeill <co...@ebinteractive.com.au>.
> From: Mia Takashima [mailto:m_takashima@yahoo.com]
> Sent: Thursday, 14 December 2000 10:32
> To: ant-user@jakarta.apache.org
> Subject: how to preserve file permissions on <copy>
>
>
> I'm using NetBSD, and when performing a copy with ant
> the executable bit is not preserved.
>
> I had to revert to the "cp -r" command.
> I do not want to apply the chmod command on all
> sub-directories, because some files do not need the
> 'x' bit.
>
> Is there another way to do it?
>
No, I do not believe there is. Java, and hence ant, does not provide a way
to know the file's permissions beyond simple tests such as canRead, canWrite
and isHidden. More detailed information is probably considered to be OS
specific.
Conor