ant build
Hi,
I wrote ant build that creates jar file.I am trying use existing manifest file but it is putiing default manifest file.
Here is my script:
<jar destfile="${jar.dir}/CmacClientTst.jar" basedir="${clientClasses.dir}">
<metainf file="${clientClasses.dir}/META-INF/MANIFEST.MF" />
</jar>
please anyone can assist...
thanks,
Read the Ant manual (again, if not already).
http://ant.apache.org/manual/index.html
Specifically this page:
http://ant.apache.org/manual/CoreTasks/jar.html
You'll see that you're not specifying the manifest correctly.
You're either supposed to use a "manifest" attribute on the jar element itself, or use a "manifest" sub-element. Not a "metainf" element for this purpose.