Jason van Zyl wrote:
> 
> 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.

Sounds like a good quick fix to allow you to procede.  Please do
document why this workaround is in place so even if it gets forgotten it
can be noticed and fixed at a later date.


------------------------------------------------------------
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