Package 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
Fields Modifier and Type Field Description private static java.util.Properties
BUILD_PROPERTIES
private static java.util.logging.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description BuildInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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).
-
-
-
Method Detail
-
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
-
-