ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject Re: Tar lost file permissions. Anyone know how to maintain file permission?
Date Wed, 20 Dec 2000 13:54:27 GMT
From: "M Y" <>
To: <>
Sent: Wednesday, December 20, 2000 5:37 AM
Subject: RE: Tar lost file permissions. Anyone know how to maintain file

> -----Original Message-----
> From: Stefan Bodewig []
> Sent: Tuesday, December 19, 2000 12:12 AM
> To:
> >Seriously, you have no way to tell the permissions of
> a file from
> >within Java - if you know a way, please tell us.
> >And if you don't know the original permissions in the
> first place how
> >would you restore them afterwards?
> File permission is important for most of us, I guess.
> If we always have to use 'exec' for things like tar,
> zip, copy & etc., then it defeats the  purpose of "the
> ability to be cross platform, to work anywhere and
> everywhere." If it's undoable, then your guys should
> state explicitly these can't be resolved. Please think
> from a user's perspective. Thanks.

The File permission model is very different from OS to OS. It is therefore,
not something that is exposed through the Java APIs, beyond simple concepts
such as whether a file is readable or writable. Since Java doesn't provide
that info, it is difficult to know the best way to provide it. Let us say
you are building a tar file on a Win98 box. How do you want to specify the
file permissions in this case?

Now let me be explicit for you. Until such time as someone contributes code
to allow ant to manage the file permissions in tar files, it will not do


View raw message