You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Anderson, Rob (Global Trade)" <Ro...@nike.com> on 2007/10/04 20:06:35 UTC

unzip PK 2.1 zip files

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

 
Any help would be appreciated. Thanks,
 

______________________
Robert Anderson
Sr. System Engineer
Nike - Global Trade IT
503-532-6803

Never let me slip, cuz if I slip, then I'm slippin. - Dr. Dre

 

Re: unzip PK 2.1 zip files

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 4 Oct 2007, Rob Anderson <Ro...@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