[jdom-interest] [PATCH] wrong jar version

Jeff Turner jeff at socialchange.net.au
Sun Jan 6 02:02:42 PST 2002


Currently, any 'jdom.jar' built from CVS will claim that it is beta 7,
when one interrogates it via 'java -jar'. This effectively renders the
whole version reporting system useless, as a jdom.jar from 6 months ago
look exactly like one produced yesterday.

This may be a symptom of a deeper misunderstanding. Is "beta 7" a point
in time, or an ongoing period of time (about 6 months)? Are we "in the
7th beta", or has it been and gone?

I'll assume a beta is a "point in time", as this is what users believe,
and the website indicates ("JDOM Beta 7 was released!").

In which case, some terminology is needed for where JDOM is, now.

The attached patch adopts the <next version>-dev approach. Once applied,
'java -jar jdom.jar' will report:

JDOM version 1.0beta8-dev, built January 6 2002
Copyright 2000-2001, Jason Hunter and Brett McLaughlin

Does that sound reasonable?

If so, the implication is that when beta 8 arrives, the distro builder
must update the version flag to "beta 8", do the build, then immediately
change the flag to "beta 9-dev".


-------------- next part --------------
Index: build.xml
RCS file: /home/cvspublic/jdom/build.xml,v
retrieving revision 1.26
diff -u -r1.26 build.xml
--- build.xml	2001/12/19 04:47:20	1.26
+++ build.xml	2002/01/06 17:46:24
@@ -13,7 +13,7 @@
     <property name="Name" value="JDOM"/>
     <property name="name" value="jdom"/>
-    <property name="version" value="1.0beta7"/>
+    <property name="version" value="1.0beta8-dev"/>
     <property name="year" value="2001"/>
     <echo message="----------- ${Name} ${version} [${year}] ------------"/>
Index: package/META-INF/info.xml
RCS file: /home/cvspublic/jdom/package/META-INF/info.xml,v
retrieving revision 1.2
diff -u -r1.2 info.xml
--- package/META-INF/info.xml	2001/06/25 18:41:20	1.2
+++ package/META-INF/info.xml	2002/01/06 17:46:25
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
-    <version>1.0 Beta 7</version>
+    <version>@version@, built @date@</version>
         JDOM is a Java-oriented object model which models XML documents.
         It provides a Java-centric means of generating and manipulating

More information about the jdom-interest mailing list