• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there ant target to check jar version?

 
Dejan Mratinkovic
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have ran quickly through ant target list, but couldn't see any target that can check jar version (from manifest file) during the build.

It would be nice if there is something to prevent building application with invalid version of external libraries.

I guess writing custom ant task to do so is not big problem, but is there something out of the box?
 
Tim Holloway
Saloon Keeper
Posts: 18300
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not very hard to write a custom Ant task to do something like that. The bigger problem is that jar version manifests aren't very reliable indicators in a free-form build environment like Ant.

You might be better off switching to Maven, which handles jar versions as one of its cornerstone features.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or Ivy, if the Maven hill is too steep a climb.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic