net.sf.colossus.util
Class BuildInfo
java.lang.Object
net.sf.colossus.util.BuildInfo
public class BuildInfo
- extends java.lang.Object
Helper class to retrieve the Build information from build.properties file
Field Summary |
private static java.util.Properties |
BUILD_PROPERTIES
|
private static java.util.logging.Logger |
LOGGER
|
Method Summary |
static java.lang.String |
getBuildInfo(boolean full)
|
static java.lang.String |
getFullBuildInfoString()
Get an info string describing the current build:
Build time stamp, username and revision number
(revision number may contain a charactor indicating that the sources
were modified before compilation) |
static java.lang.String |
getReleaseVersion()
Retrieves the version of Colossus we are running. |
static java.lang.String |
getRevisionInfoString()
Get the string describing the pure revision info
(revision number, plus perhaps a character indicating sources
were modified before compilation). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
private static final java.util.logging.Logger LOGGER
BUILD_PROPERTIES
private static final java.util.Properties BUILD_PROPERTIES
BuildInfo
public BuildInfo()
getBuildInfo
public static java.lang.String getBuildInfo(boolean full)
getFullBuildInfoString
public static java.lang.String getFullBuildInfoString()
- Get an info string describing the current build:
Build time stamp, username and revision number
(revision number may contain a charactor indicating that the sources
were modified before compilation)
- Returns:
- The long/full build info string
getRevisionInfoString
public static java.lang.String getRevisionInfoString()
- Get the string describing the pure revision info
(revision number, plus perhaps a character indicating sources
were modified before compilation).
- Returns:
- The revision information string
getReleaseVersion
public static java.lang.String getReleaseVersion()
- Retrieves the version of Colossus we are running.
This returns either a version number for an official release or
"SNAPSHOT" otherwise.
- Returns:
- The release version of the Colossus instance