Author: toad
Date: 2009-04-09 22:14:11 +0000 (Thu, 09 Apr 2009)
New Revision: 26687
Modified:
trunk/plugins/KeyExplorer/KeyExplorer.java
trunk/plugins/KeyExplorer/Version.java
Log:
Version KeyExplorer
Modified: trunk/plugins/KeyExplorer/KeyExplorer.java
===================================================================
--- trunk/plugins/KeyExplorer/KeyExplorer.java 2009-04-09 22:13:55 UTC (rev
26686)
+++ trunk/plugins/KeyExplorer/KeyExplorer.java 2009-04-09 22:14:11 UTC (rev
26687)
@@ -36,6 +36,7 @@
import freenet.pluginmanager.FredPluginFCP;
import freenet.pluginmanager.FredPluginHTTP;
import freenet.pluginmanager.FredPluginL10n;
+import freenet.pluginmanager.FredPluginRealVersioned;
import freenet.pluginmanager.FredPluginThreadless;
import freenet.pluginmanager.FredPluginVersioned;
import freenet.pluginmanager.PluginHTTPException;
@@ -53,7 +54,7 @@
* @author saces
*
*/
-public class KeyExplorer implements FredPlugin, FredPluginHTTP,
FredPluginL10n, FredPluginFCP, FredPluginThreadless, FredPluginVersioned {
+public class KeyExplorer implements FredPlugin, FredPluginHTTP,
FredPluginL10n, FredPluginFCP, FredPluginThreadless, FredPluginVersioned,
FredPluginRealVersioned {
private PluginRespirator m_pr;
private PageMaker m_pm;
@@ -480,6 +481,10 @@
public String getVersion() {
return "0.3 r"+ Version.svnRevision;
}
+
+ public long getRealVersion() {
+ return Version.version;
+ }
private Metadata simpleManifestGet(FreenetURI uri) throws
MetadataParseException, LowLevelGetException, IOException {
GetResult res = simpleGet(m_pr, uri);
Modified: trunk/plugins/KeyExplorer/Version.java
===================================================================
--- trunk/plugins/KeyExplorer/Version.java 2009-04-09 22:13:55 UTC (rev
26686)
+++ trunk/plugins/KeyExplorer/Version.java 2009-04-09 22:14:11 UTC (rev
26687)
@@ -8,5 +8,16 @@
*
*/
public class Version {
+ /** SVN revision number. Only set if the plugin is compiled properly
e.g. by emu. */
public static final String svnRevision = "@custom@";
+
+ /** Version number of the plugin for getRealVersion(). Increment this
on making
+ * a major change, a significant bugfix etc. These numbers are used in
auto-update
+ * etc, at a minimum any build inserted into auto-update should have a
unique
+ * version.
+ *
+ * I have set this to 3000 to allow encoding marketing versions into
real versions.
+ * Long provides plenty of leeway! Toad. */
+ public static long version = 3000;
+
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs