logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17862] - Version.getVersion() method requested
Date Tue, 14 Feb 2006 22:07:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=17862>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=17862





------- Additional Comments From wfe.dehaan@gmail.com  2006-02-14 23:07 -------
I see the following options for updating the version string:
1) Manually
2) Automatically from the build script

Considering the comment #8 from Endre Stølsvik, it indeed sounds like it's wise
to let it be done automatically.

Then I see the following options for locations for storing the version string:
a) in a static string in some class
b) in the Manifest.mf file, inside the JAR file
c) in a separate resource inside the JAR file

The last two options have multiple advantages over the former. As Mark Womack
mentions in comment #7 it avoids having to recompile code which is an issue
because it would normally make the system dependant on the javac dependency
algorithm, which is timestamp-based and may be tricky.

Also, the second and third option allows checking the version by just peeking at
the JAR file. That's an additional feature!

Option (b) has the advantage of being a standard approach. So assuming we can
get to this information, even on JDK 1.1, I suggest we choose this one.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message