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,

[458 byte] By [tutikashilpaa] at [2007-11-27 11:15:12]
# 1

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.

warnerjaa at 2007-7-29 14:11:34 > top of Java-index,Java Essentials,Java Programming...
# 2

Thanks.It worked

tutikashilpaa at 2007-7-29 14:11:34 > top of Java-index,Java Essentials,Java Programming...