ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Ant 1.8 unzip does not preserve permissions!
Date Thu, 01 Jul 2010 12:30:21 GMT
On 2010-07-01, ilke Muhtaroglu wrote:

> When I unzip with ant command

> <unzip src="${}" dest="${}" />

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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message