ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Pfisterer <Matthias.Pfiste...@gmx.de>
Subject jar task: dubious behaviour
Date Sun, 26 Nov 2000 12:19:23 GMT
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	<mailto:Matthias.Pfisterer@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/
--------------------------------------------------------------

Mime
View raw message