A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
RabbitMQ in Depth
this week in the
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 Maven, 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.
I agree. Here's the link:
subject: Is there ant target to check jar version?
Ant and its verion
how to know the version of java used to create a jar file
Up-to-date checks with macros
A simple question about istrue of Ant.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015