Jim,

This is because it is not possible, through Java APIs, to determine the
current access mode of a Unix file. The solution we have adopted in 1.3 is
to allow tar to take multiple filesets, for each of which the access mode
can be specified. This means that I can generate a sensible tar file for
Unix users on my non-Unix box.

It still will not pick up the permissions from the OS. For that you will
probably need to resort to exec'ing the OS version of tar.

I suggest you checkout the new Beta, the tar documentation it contains and
also Ant's own build file where we are using this feature to set the execute
permissions on the ant wrapper scripts.

Conor

> -----Original Message-----
> From: Jim Stallard [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 22 February 2001 4:13
> To: [EMAIL PROTECTED]
> Subject: tar attribute ignores access mode of file
>
>
> Hello,
>
> any reason why the tar attribute does not preserve access modes of tarred
> files?
> Looks like the access mode of all files  (under Unix) is
> determined by umask.
>
> I see nothing on this topic in the archives
>
> Thanks for any info,
>
> -Jim
>
> I'm running Ant version 1.2 compiled on October 24 2000 (latest stable
> version).
>
>
> --
> James Stallard
> GlobalOne 13775 McLearen Rd
> Phone: (703) 471-2553
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to