forked from I2P_Developers/i2p.i2p
Re-add file
This commit is contained in:
32
router/java/src/net/i2p/router/RouterVersion.java
Normal file
32
router/java/src/net/i2p/router/RouterVersion.java
Normal file
@@ -0,0 +1,32 @@
|
||||
package net.i2p.router;
|
||||
/*
|
||||
* free (adj.): unencumbered; not under the control of others
|
||||
* Written by jrandom in 2003 and released into the public domain
|
||||
* with no warranty of any kind, either expressed or implied.
|
||||
* It probably won't make your computer catch on fire, or eat
|
||||
* your children, but it might. Use at your own risk.
|
||||
*
|
||||
*/
|
||||
|
||||
import net.i2p.CoreVersion;
|
||||
|
||||
/**
|
||||
* Expose a version string
|
||||
*
|
||||
*/
|
||||
public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 24;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "-rc";
|
||||
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Router version: " + FULL_VERSION);
|
||||
System.out.println("Router ID: " + RouterVersion.ID);
|
||||
System.out.println("I2P Core version: " + CoreVersion.VERSION);
|
||||
System.out.println("Core ID: " + CoreVersion.ID);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user