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
>

Reply via email to