Magggi
Magggi

Reputation: 1155

JAR version control

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

Regards,

magggi.

Upvotes: 4

Views: 1149

Answers (3)

Andy Thomas
Andy Thomas

Reputation: 86411

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.

Upvotes: 1

Kelly S. French
Kelly S. French

Reputation: 12334

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

Upvotes: 0

mkoryak
mkoryak

Reputation: 57938

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

Upvotes: 0

Related Questions