ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: unzip PK 2.1 zip files
Date Fri, 05 Oct 2007 03:48:04 GMT
On Thu, 4 Oct 2007, Rob Anderson <Rob.Anderson@nike.com> wrote:

> I am getting an error when trying to unzip a PK 2.1 compressed zip
> file.
>  
> BUILD FAILED /home/rande4/build.xml:7:
> java.lang.IllegalArgumentException: invalid compression method

The ZIP "standard" defines several compression methods for files
inside the archive and Ant's ZIP classes (like the java.util.zip
classes) only support two of them (store uncompressed and deflate
which uses the same algorithm as gzip).  The archive you are trying to
extract has been created using a different algorithm, maybe it is
encrypted.

Sorry I can't do more than explain why you see the exception, there is
no Ant internal solution to it.

Stefan

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


Mime
View raw message