tags:

views:

87

answers:

3

Hi all,

Can i generate jar from eclipse with version number for the jar created newly for every jar export?

Regards,

magggi.

A: 

yes, you will probably want to use ant and do some token replacements in the jar filename.

mkoryak
+1  A: 

One way is to run a build script from Eclipse. If you use ant, check out these tasks:

  • buildnumber to increment a build number held in a file.
  • copy with a filterset to replace version tokens in MANIFEST.MF
  • jar to jar the filtered manifest, classes, resources etc.
Andy Thomas-Cramer
A: 

You could create your own Eclipse builder for the project that kicks off an ANT script.

Kelly French