A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Ant, Maven and Other Build Tools
Is there ant target to check jar version?
Joined: Nov 20, 2008
Nov 30, 2009 08:55:56
I have ran quickly through
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?
Joined: Jun 25, 2001
Dec 01, 2009 04:23:03
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
, which handles jar versions as one of its cornerstone features.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Sep 29, 2008
Dec 01, 2009 06:13:20
Or Ivy, if the Maven hill is too steep a climb.
subject: Is there ant target to check jar version?
Ant and its verion
A simple question about istrue of Ant.
Up-to-date checks with macros
how to know the version of java used to create a jar file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014