> From: Mia Takashima [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 14 December 2000 10:32
> To: [EMAIL PROTECTED]
> 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