Regarding jar naming conventions

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
chuck clark

Regarding jar naming conventions

Post by chuck clark » Thu Feb 13, 2003 6:03 pm

Kudos to everyone who worked on 0.9.5. I like the API changes. I had a question/comment regarding the jar naming convention.

While updating my code to run on a new version I usually have multiple copies installed
/usr/local/java/jfreechart-0.9.4
/usr/local/java/jfreechart-0.9.5
and then a sym link
/usr/local/java/jfreechart -> <whichever version i'm using>

the problem is that the jfreechart jar and jfreechart-demo jar have the versions in their filename. I realise this is to get around the terrible way in which Sun has completely forgotten to add any mechanism for versioning libraries in Java. But has there been any thought to putting the version minimally in the MANIFEST.MF and maybe to include a class with a main() called JFreeChartVersion that when run will return the version? Then it is easy to have multiple versions installed AND still easily determine which version you're using.

This is not really a big concern, it's just that when I install a new version of JFreeChart (and JCommon) and I'm going to start using JWorkBook it is nice to be able to easily switch versions by changing a symbolic link. The only drawback I see is Windows users who aren't using Cygwin and therefore don't have symlinks might be opposed.

just a thought and i'd be interested to hear if anyone else is dealing with this kind of issue in a different way
chuck

Locked