This has been discussed many times before. Until JSR 203 
(http://www.jcp.org/en/jsr/detail?id=203) is delivered it's basically 
impossible to do, as java.io.File does not provide access to the file 
attributes from the underlying native file system.

If you absolutely need to preserve the existing file permissions (instead 
of defining your own) then you must exec the native tar executable on your 
platform.

JEC
-- 
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)




Leon Pu <[EMAIL PROTECTED]> 
12/02/2005 09:32 AM
Please respond to
"Ant Users List"


To
Ant Usenet <user@ant.apache.org>
cc

Subject
Tar with original permission setting






Hi all,

could anybody tell me how to use Ant's tar task to tar files and
directories with their original permission setting in Linux?


Best regards,
Leon


 
__________________________________________ 
Yahoo! DSL ? Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to