You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Matthias Pfisterer <Ma...@gmx.de> on 2000/11/26 13:19:23 UTC
jar task: dubious behaviour
Hi,
I'm using ant 1.2 with the Blackdown jdk1.3.0-FCS. Using the jar task, I
get the following behaviour:
<jar jarfile="${dist}/jsinfo.jar"
basedir="${build}"
manifest="./manifest.mf" />
...works.
<jar jarfile="${dist}/jsinfo.jar"
basedir="${build}" />
... gives an error:
/home/matthias/java/jsresources/apps/jsinfo/build.xml:26: Problem
creating jar: ZIP file must have at least one entry
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)
at org.apache.tools.ant.Target.execute(Target.java)
at org.apache.tools.ant.Project.runTarget(Project.java)
at org.apache.tools.ant.Project.executeTarget(Project.java)
at org.apache.tools.ant.Project.executeTargets(Project.java)
at org.apache.tools.ant.Main.runBuild(Main.java)
at org.apache.tools.ant.Main.main(Main.java)
any ideas?
Matthias
--
Matthias Pfisterer <ma...@gmx.de>
Share your knowledge.
It's a way to achieve immortality.
(from a nepalese mantra)
Java Sound Examples:
http://rupert.informatik.uni-stuttgart.de/~pfistere/jsexamples/
Tritonus, the open source implementation of the Java Sound API:
http://www.tritonus.org/
--------------------------------------------------------------
Re: jar task: dubious behaviour
Posted by Stefan Bodewig <bo...@apache.org>.
Matthias Pfisterer <Ma...@gmx.de> wrote:
> Hi,
>
> I'm using ant 1.2 with the Blackdown jdk1.3.0-FCS. Using the jar
> task, I get the following behaviour:
>
> <jar jarfile="${dist}/jsinfo.jar"
> basedir="${build}"
> manifest="./manifest.mf" />
> ...works.
>
> <jar jarfile="${dist}/jsinfo.jar" basedir="${build}" />
>
> ... gives an error:
> /home/matthias/java/jsresources/apps/jsinfo/build.xml:26:
> Problem creating jar: ZIP file must have at least one
> entry
this probably means Ant either doesn't find ${base} or there is no
content in this directory. You don't get an exception in the first
example as you specify a MANIFEST - so there is something to put into
the archive.
Stefan