ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Goli, Srikanth" <sg210...@exchange.DAYTONOH.NCR.com>
Subject Zip problem
Date Wed, 28 Mar 2001 19:48:21 GMT
Hi Everybody..

I am trying to create a zip file from a fileset..I am getting a Zip
Exception with duplicate entry. I don't know what I am doing wrong??
I am using the following target in my build.xml. I am using Ant 1.3 and JDK
1.3

Can somebody help me..

Thanks
SrikanthGoli

<target name="patch">
    <zip zipfile="patch.zip" basedir="C:\test">
	<fileset dir="C:\test"/>
    </zip>
  </target>

- Debug output

Ant version 1.3 compiled on March 2 2001

Buildfile: build.xml
Setting project property: ant.java.version -> 1.3
Detected Java Version: 1.3
Detected OS: Windows NT

patch:
      [zip] Building zip: C:\Crmapps\source\patch.zip

BUILD FAILED

C:\Crmapps\bin\build.xml:94: Problem creating zip: duplicate entry:
build-crm.xml
--- Nested Exception ---
java.util.zip.ZipException: duplicate entry: build-crm.xml
        at
java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:165)
        at org.apache.tools.ant.taskdefs.Zip.zipFile(Zip.java:455)
        at org.apache.tools.ant.taskdefs.Zip.zipFile(Zip.java:474)
        at org.apache.tools.ant.taskdefs.Zip.addFiles(Zip.java:260)
        at org.apache.tools.ant.taskdefs.Zip.addFiles(Zip.java:549)
        at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:186)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 1 second

Mime
View raw message