ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject RE: how to preserve file permissions on <copy>
Date Thu, 14 Dec 2000 00:53:58 GMT
> From: Mia Takashima []
> Sent: Thursday, 14 December 2000 10:32
> To:
> 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


View raw message