ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: jar task: dubious behaviour
Date Mon, 27 Nov 2000 07:43:12 GMT
Matthias Pfisterer <Matthias.Pfisterer@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

Mime
View raw message