You can also just restort to the "exec" task and use unix tar to create the
tar. That will preserve the unix file permissions.
Julian.
----- Original Message -----
From: "Scott Stirling" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 19, 2000 8:39 AM
Subject: RE: Tar lost file permissions. Anyone know how to maintain file
permission?
> I just use an Ant chmod target to restore all the permissions as needed.
I
> ran into this last week. The thing that really sucks is the chmod task
> doesn't do anything on Windows. It hasn't been that big of a problem for
> me. Definitely something for someone to try and work on if there's a way
to
> do it through Java.
>
> Scott Stirling
>
> -----Original Message-----
> From: KC Baltz [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 5:21 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Tar lost file permissions. Anyone know how to maintain file
> permission?
>
>
> It can't be done directly in Ant as Java has very little knowledge of
> permissions; they're OS specific.
>
> K.C.
>
> > -----Original Message-----
> > From: Zhu, Yao [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 18, 2000 4:06 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Tar lost file permissions. Anyone know how to maintain file
> > permission?
> >
> >
> > Hi,
> >
> > When I use tar target in unix, it loss the original file
> > permission and rest
> > everything to 644. This forces me back to shell scripts.
> >
> > Does anyone know how to maintain the file permissions while
> > using tar task
> > in ant?
> >
> > thanks.
> >
> > -Yao Zhu
> >
>
>