You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Javier Keller <jk...@spm.de> on 2000/11/10 12:17:52 UTC

unzip fails

Hi, 

I'm using Ant1.2 with a fairly simple task:

	<!-- unzip deploy file -->
	<unzip src="deploy.zip" dest="${deploy.dir}"/>

...and I get following exception (after having unzipped half of the files):

BUILD FAILED

java.lang.IllegalArgumentException
        at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java, Compi
led Code)
        at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java, Compiled Co
de)
        at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java, Compil
ed Code)
        at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java, Compiled
 Code)
        at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java, Compiled Co
de)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Cod
e)
        at org.apache.tools.ant.Project.executeTargets(Project.java, Compiled Co
de)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:149)


Any ideas? Thanks in advance, 

Javier

Re: unzip fails

Posted by Stefan Bodewig <bo...@bost.de>.
Javier Keller <jk...@spm.de> wrote:

> Hi, 
> 
> I'm using Ant1.2 with a fairly simple task:
> 
> 	<!-- unzip deploy file -->
> 	<unzip src="deploy.zip" dest="${deploy.dir}"/>
> 
> ...and I get following exception (after having unzipped half of the
> files):
> 
> BUILD FAILED
> 
> java.lang.IllegalArgumentException
>         at
>         java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java,
>         Compi
> led Code)

<snip/>

> Any ideas?

Looks like you've found either a corrupt ZIP file or a bug in Sun's
classes java.util.zip classes.

Stefan