RE: version numbers in jars

2002-02-21 Thread Glen Daniels


Axis contains an org.apache.axis.Version class, which has a getVersionString() method 
and a main() which prints the version info to System.out.  The version string comes 
from a resource file, and is automatically updated by our ant build each time the jar 
is put together.  Being a SOAP engine, we also expose a SOAP service called Version 
which allows remote querying of the Axis version.

I'm a definite +1 to version information in jars - please feel free to check out the 
way we did it in Axis.

--Glen

 -Original Message-
 From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 21, 2002 4:12 AM
 To: Jakarta General List
 Cc: [EMAIL PROTECTED]
 Subject: RE: version numbers in jars
 
 
 
 The following is from http://www.ibiblio.org/java/#recent
 
 I have a request to make of the log4j team, as well as all the other
 Java programmers at the Apache Project, IBM alphaWorks, Sun, and
 everyone else who distributes JAR archives. Could you please attach a
 version number to all your JARs? I maintain several systems whose ext
 directories I try to keep in sync. However, it's extremely difficult
 to do this when there's no straight-forward way to look at log4j.jar
 (or xercesImpl.jar, servlet.jar, jedit.jar, saxon.jar, or any of the
 several dozen other jar archives I work with on a daily basis) and
 quickly tell which version it holds. I personally experience this
 problem mostly with XML related jars, but the problem is 
 hardly unique
 to XML. It's especially problematic when some other software requires
 a particular version of a third-party jar. For instance, IBM
 alphaWorks' XML Security Suite works with Xerces 2.0 beta 2 but not
 earlier or later versions. The Apache XML Security project works with
 the release version of Xalan 2.2 or later. My own XInclude software
 works with Xerces 1.4.0 through 1.4.3 but not earlier or later
 versions.
 
 A big +1, we asked this sometimes ago in jpackage projects since it's
 really confortable to have jar name like log4j-1.1.3.jar, or 
 xerces-1.4.4.jar since it help you have ALL versions in the same place
 and let you decide which you want to use. Also very usefull when you
 want to go from a stable 1.x to a beta 2.x for example.
 
 
 I forward the request to xml list since it really an important point,
 may be not for the developpers but for users and packagers...
 
 
 
 -
 In case of troubles, e-mail: [EMAIL PROTECTED]
 To unsubscribe, e-mail:  [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail:  [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: version numbers in jars

2002-02-21 Thread Glen Daniels


Oh, I misunderstood what you were wanting.

A big -1 to naming all jars with version #s.  I can't think of a bigger pain in the 
keister than having to revamp my classpath settings every time a library revs.

I could see heading down a road where all the Apache jars do programatic(sp?) version 
information the same way, but I would rather not make that via the filename.

--Glen

 -Original Message-
 From: Elliotte Rusty Harold [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 21, 2002 9:15 AM
 To: [EMAIL PROTECTED]
 Subject: RE: version numbers in jars
 
 
 At 8:27 AM -0500 2/21/02, Glen Daniels wrote:
 Axis contains an org.apache.axis.Version class, which has a 
 getVersionString() method and a main() which prints the version info 
 to System.out.  The version string comes from a resource file, and 
 is automatically updated by our ant build each time the jar is put 
 together.  Being a SOAP engine, we also expose a SOAP service called 
 Version which allows remote querying of the Axis version.
 
 
 All of which is well and good, but doesn't really help me when I'm 
 looking at my ext directory in Explorer and trying to figure out 
 which jar I've got or whether I'm replacing it with which version. 
 This is especially true since I've got dozens of jar archives and 
 although many do something like this, no two do it the same way.
 
 All I'm asking for is that the version number be clearly placed in 
 the filename where everyone can see it immediately; e.g. 
 axis-1.0.jar, axis-2.0b2.jar, etc. In a few cases it's also necessary 
 for the distributor to be included as well; for instance 
 sun-jce-1.3.jar, cryptix-jce-1.3.jar, etc.
 
 It's a minor point, but I don't think it will hurt anybody; it isn't 
 hard to implement; and it even if it only saves developers a few 
 minutes a week, that time adds up when summed over all the developers 
 who use these jars.
 -- 
 
 +---++---+
 | Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer |
 +---++---+
 |  The XML Bible, 2nd Edition (Hungry Minds, 2001)   |
 |  http://www.ibiblio.org/xml/books/bible2/  |
 |   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
 +--+-+
 |  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/  |
 |  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ |
 +--+-+
 
 -
 In case of troubles, e-mail: [EMAIL PROTECTED]
 To unsubscribe, e-mail:  [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail:  [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]