http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2644
*** shadow/2644 Mon Jul 16 15:47:58 2001
--- shadow/2644.tmp.15156 Mon Jul 16 15:47:58 2001
***************
*** 0 ****
--- 1,39 ----
+ +============================================================================+
+ | jar task fails with java.util.zip.ZipException |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2644 Product: Ant |
+ | Status: NEW Version: 1.3 |
+ | Resolution: Platform: PC |
+ | Severity: Minor OS/Version: Windows NT/2K |
+ | Priority: Other Component: Core tasks |
+ +----------------------------------------------------------------------------+
+ | Assigned To: [EMAIL PROTECTED] |
+ | Reported By: [EMAIL PROTECTED] |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Environment - Win2K + java version "1.3.0_02" + Ant 1.3
+
+ Description -
+ The jar task fails with a java.util.zip.ZipException: ZIP file must have at
+ least one entry.
+
+ Task XML -
+ <jar jarfile="${some.jar}" basedir="${buildjardir}">
+ <fileset dir="." includes="*.class"/>
+ </jar>
+
+ Exception details -
+ Problem creating jar: ZIP file must have at least one entry (and the archive
is
+ probably corrupt but I could not delete it)
+ java.util.zip.ZipException: ZIP file must have at least one entry
+ at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:294)
+ at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:312)
+ at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:172)
+ at org.apache.tools.ant.Target.execute(Target.java:142)
+ at org.apache.tools.ant.Project.runTarget(Project.java:818)
+ at org.apache.tools.ant.Project.executeTarget(Project.java:532)
+ at org.apache.tools.ant.Project.executeTargets(Project.java:506)
+ at org.apache.tools.ant.Main.runBuild(Main.java:420)
+ at org.apache.tools.ant.Main.main(Main.java:149)