It worked just fine!
Thanks for your help Eli!!

-----Original Message-----
From: Eli Sherman [mailto:eli@aspear.com]
Sent: Tuesday, May 01, 2001 1:35 PM
To: 'ant-user@jakarta.apache.org'
Subject: RE: updating jar - facing errors

try using the <support> nested element of ejbjar, it does just that.

-----Original Message-----
From: Aarti Chandnani [mailto:Aarti.Chandnani@XUMA.com]
Sent: Tuesday, May 01, 2001 9:24 PM
To: 'ant-user@jakarta.apache.org'
Subject: updating jar - facing errors

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:
--- Nested Exception ---
java.util.zip.ZipException: duplicate entry: META-INF/MANIFEST.MF
        at org.apache.tools.ant.taskdefs.Zip.zipFile(Zip.java, Compiled
        at org.apache.tools.ant.taskdefs.Zip.addZipEntries(Zip.java,
Compiled Code)
        at org.apache.tools.ant.taskdefs.Zip.addFiles(Zip.java, Compiled
        at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java, Compiled
        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
        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.