ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John W. Lewis" <JohnW.Le...@sas.com>
Subject RE: Ant 1.8 unzip does not preserve permissions!
Date Thu, 01 Jul 2010 12:44:29 GMT

<chmod> may be helpful.

http://ant.apache.org/manual/Tasks/chmod.html


-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Thursday, July 01, 2010 8:30 AM
To: user@ant.apache.org
Subject: Re: Ant 1.8 unzip does not preserve permissions!

On 2010-07-01, ilke Muhtaroglu wrote:

> When I unzip with ant command

> <unzip src="${app.server.zip.name}" dest="${ext.work.dir}" />

> I see the resulting directory does not have the permissions preserved in
> linux environment.

This is true.  The unzip task doesn't do anything with permissions and
the manual page even says so

,----
| File permissions will not be restored on extracted files.
`----

> At http://ant.apache.org/manual/Tasks/zip.html I see there is an option
> "preserve0permissions"...

It is the zip task, not the unzip task.  And it applies to permissions
read from a different archive when you use the zip task to
repackage/merge archives.

Ant is capable of dealing with permissions inside ZIP and TAR archives
but not on the file system.  The latter isn't going to change until the
tasks can run on NIO2 and Java7 because the Java File API currently
simply doesn't provide the means we'd need.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message