Author: zothar
Date: 2006-11-26 15:56:14 +0000 (Sun, 26 Nov 2006)
New Revision: 11057
Modified:
trunk/contrib/freenet_ext/ExtVersion.java
Log:
The freenet-ext.jar side of updated freenet-ext.jar version providing code,
both build-time and run-time versions.
Modified: trunk/contrib/freenet_ext/ExtVersion.java
===================================================================
--- trunk/contrib/freenet_ext/ExtVersion.java 2006-11-26 10:39:58 UTC (rev
11056)
+++ trunk/contrib/freenet_ext/ExtVersion.java 2006-11-26 15:56:14 UTC (rev
11057)
@@ -6,16 +6,24 @@
public abstract class ExtVersion {
/** The build number of the current revision */
- private static final int buildNumber = 8;
+ private static final int buildNumber = 8; // This is the
freenet-ext.jar build the node was built with
public static final int buildNumber() {
+ return -42; // This value indicates that the freenet-ext.jar
the node is using at runtime has extBuildNumber() and extRevisionNumber()
methods
+ }
+
+ public static final int extBuildNumber() { // This returns the
freenet-ext.jar build the node is using at runtime
return buildNumber;
}
- /** Revision number of Version.java as read from CVS */
- public static final String cvsRevision = "-2";
+ /** Revision number of ExtVersion.java as read from SVN */
+ public static final String cvsRevision = "11056M"; // This is the
freenet-ext.jar revision the node was built with
- public static final String cvsRevision() {
- return "@custom@";
+ public static final String cvsRevision() { // This method is here for
backwards compatability with a few node testing builds between 999 and 1000
+ return cvsRevision;
}
+
+ public static final String extRevisionNumber() { // This returns the
freenet-ext.jar revision the node is using at runtime
+ return cvsRevision;
+ }
}