ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: updating jar - facing errors
Date Tue, 01 May 2001 19:43:10 GMT
I think you might want to be using the <zip> task. As I understand it, if
you use the <jar> task, you get a manifest file, and if you use the <zip>
task, you don't.

Diane

--- Aarti Chandnani <Aarti.Chandnani@XUMA.com> wrote:
> Hi folks,
> 
> I am creating a ejb jar using the ejbjar task.
> Now i want to append some more class files to this jar
> SO i am using something like :
> 
> <move file="lib/myarchive.jar" tofile="lib/tmp.jar" /> 
> <jar jarfile="lib/myarchive.jar" ... > 
>  <fileset dir="." includes="my/package/name/file.name" /> 
>  <zipfileset src="lib/tmp.jar" includes="**" /> 
> </jar> ><delete file="lib/tmp.jar" /> 
> when i run this i get an error like:
> 
> C:\bea\beabuild.xml:92: Problem creating jar: duplicate entry:
> META-INF/MANIFEST.MF
> --- Nested Exception ---
> java.util.zip.ZipException: duplicate entry: META-INF/MANIFEST.MF
>         at
> java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:169)
>         at org.apache.tools.ant.taskdefs.Zip.zipFile(Zip.java, Compiled
> Code)
>         at org.apache.tools.ant.taskdefs.Zip.addZipEntries(Zip.java,
> Compiled Code)
>         at org.apache.tools.ant.taskdefs.Zip.addFiles(Zip.java, Compiled
> Code)
>         at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java, Compiled
> Code)
>         at org.apache.tools.ant.Target.execute(Target.java, Compiled
> Code)
>         at org.apache.tools.ant.Project.runTarget(Project.java:898)
>         at org.apache.tools.ant.Project.executeTarget(Project.java,
> Compiled
> Code)
>         at org.apache.tools.ant.Project.executeTargets(Project.java,
> Compiled Code)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java:149)
> 
> I feel that when i do the jar task it creates it own manifest file, but
> one
> already exists in the temp.
> Is there a way to secify the 'M' option with jar?
> or what else is a work around?
> 
> I am in a little hurry, quick help is appreciated.
> Thanks
> 
> 
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Mime
View raw message