开发者

JAR version control

Can i generate jar from eclipse with version 开发者_StackOverflownumber for the jar created newly for every jar export?

Regards,

magggi.


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.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜