On Fri, 28 Jul 2000, Christopher Elkins wrote:

> From looking at the Ant src, I don't think there's any way (currently) for it to
> preserve the perms. The Tar task is completely dependent on the properties
> provided by java.io.File, one of which is _not_ the permission mode. The tar
> code in org.apache.tools.tar.TarEntry does, however, let you specify the
> permisson mode. If the Tar task could be re-written to retrieve the current
> perms as it's iterating, then just maybe...
> 
> Is there a Unix command for retrieving the perms (and just the perms, ma'am) for
> a file? Maybe we can patch the Tar task to add an optional parameter like
> 'preserveperms', which would call a native process similar to what the Chmod
> task does. Thoughts?

That would probably be a generally useful feature to add, but
I don't feel like doing it right now. I think I'll just use
an exec task to make the tarball, or add a shell script
to do it. I want to get this to work.

But I'll look at the Ant code, maybe we can whip
something up later :) It's kind of silly that it
doesn't preserve permissions. I think almost always
a tarball is going to be used on a Unix box, where
it's kind of nice to keep the original perms :)

jvz.

-- 

Jason van Zyl
[EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to