christian wrote:
Please don't. Look at net.sf.hibernate.Environment.
That would be great if I wanted to code up something and print out the version...hell I can get that by just loading up Hibernate and turning on some basic logging.
It would be nice, without having to write any code, to be able to tell exactly what version of hibernate I have sitting in front of me. Sure, the jar is called Hibernate2.jar, but there are a lot of versions of Hibernate2.
I don't necessarily know of the cleanest way to do this, but maybe a manifest entry, or have the build make the jar name Hibernate-full-version-info.jar . I'm sure that would upset others as well who are used to just dropping in the latest Hibernate2.jar and overwritting what was there. Surely there's a way to get this info in there.