|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.util.Version
public class Version
Package level version file used to keep packaging and codebase in sync. The file Version.java.in is filtered to create Version.java when Callisto is built using ant. If you are not using ant to build Callisto you can do this manually by copying Version.java.in to Version.java, replacing "@ VERSION @" with the "version" property value in the file build.xml.
Field Summary | |
---|---|
static java.lang.String |
BUILDNUM
|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
JRE_MIN_EDIT
|
static java.lang.String |
JRE_MIN_MAJOR
|
static java.lang.String |
JRE_MIN_MINOR
|
static java.lang.String |
JRE_MIN_VERSION
|
private static int |
jreMinEdit
|
private static int |
jreMinMajor
ints for comparisons, concatentated and stored as JRE_MIN_VERSION |
private static int |
jreMinMinor
|
static java.lang.String |
VERSION
|
private static java.util.Properties |
versionInfo
Current version info |
static java.lang.String |
VERSNUM
|
static java.lang.String |
VERSNUM_NOWARN_MAXIMUM
For minimum version required; warn in NewGameOptionsFrame only if game options require newer than this version number. |
Constructor Summary | |
---|---|
Version()
|
Method Summary | |
---|---|
static java.lang.String |
buildnum()
Return the build-number string. |
static java.lang.String |
copyright()
Return the copyright string. |
(package private) static boolean |
isJREValid()
Check for sufficient version of the JRE. |
static java.lang.String |
minJREVersion()
Return the minimum required jre. |
static void |
printVersionText(java.io.PrintStream out,
java.lang.String progname)
Print the JSettlers version banner and attribution text. |
static java.lang.String |
version()
Return the current version string. |
static java.lang.String |
version(int versionNumber)
Given a version number integer such as 1109, return a human-readable string such as "1.1.09". |
static int |
versionNumber()
Return the current version number. |
static int |
versionNumberMaximumNoWarn()
For new game creation, return the minimum recent version number to not warn during new game creation; should be a version released more than a year ago. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String VERSION
public static java.lang.String VERSNUM
public static final java.lang.String VERSNUM_NOWARN_MAXIMUM
versionnumMaxNoWarn
in build.xml
.
versionNumberMaximumNoWarn()
,
Constant Field Valuespublic static java.lang.String COPYRIGHT
public static java.lang.String BUILDNUM
public static java.lang.String JRE_MIN_VERSION
public static java.lang.String JRE_MIN_MAJOR
public static java.lang.String JRE_MIN_MINOR
public static java.lang.String JRE_MIN_EDIT
private static java.util.Properties versionInfo
private static int jreMinMajor
private static int jreMinMinor
private static int jreMinEdit
Constructor Detail |
---|
public Version()
Method Detail |
---|
public static java.lang.String version(int versionNumber)
versionNumber
- a version number, as returned by versionNumber()
,
which should be 0 or an integer 1000 or higher
version()
public static java.lang.String version()
public static int versionNumber()
version()
,
version(int)
public static int versionNumberMaximumNoWarn()
NewGameOptionsFrame
options dialog.
To view or set this version, see VERSNUM_NOWARN_MAXIMUM
.
versionNumber()
public static java.lang.String copyright()
public static java.lang.String buildnum()
public static java.lang.String minJREVersion()
static boolean isJREValid()
public static void printVersionText(java.io.PrintStream out, java.lang.String progname)
SOCPlayerClient
, SOCServer
.
out
- System.out
or System.err
progname
- "Java Settlers Server " or "Java Settlers Client ", including trailing space
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |