How to set version to jar?

M

Muhammed

Hi i am creating jar file using export menu of eclipse.Could any one
tell me how to set the version to jar?


Nasir
 
A

Andrew Thompson

..Could any one
tell me how to set the version to jar?

The manifest file of a Jar can contain attributes
like version.

Ant e.g.
<jar destfile="${build}/jar/iset.jar" index='true' update='true'>

<fileset dir="${build}/share">

<include name="org/pscode/iset/*.class" />

</fileset>
<manifest>

<attribute name="Main-Class"
value="org.pscode.iset.ImageSequenceTitler"/>
<section name="org/pscode/iset/">

<attribute name="Implementation-Title" value="ISe-T - Image
Sequence Titler"/>

<attribute name="Implementation-Vendor" value="${vendor}"/>

<attribute name="Implementation-Vendor-Id" value="org.pscode"/>

<attribute name="Implementation-Version" value="${now}"/>

</section>

</manifest>

</jar>
 
J

Java coder

Muhammed a écrit :
Hi i am creating jar file using export menu of eclipse.Could any one
tell me how to set the version to jar?

You have to use your own MANIFEST.MF file and include it in the export
wizard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top