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
