Package net.sf.colossus.util
Class BuildInfo
java.lang.Object
net.sf.colossus.util.BuildInfo
Helper class to retrieve the Build information from build.properties file
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getBuildInfo
(boolean full) static String
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 String
Retrieves the version of Colossus we are running.static String
Get the string describing the pure revision info (revision number, plus perhaps a character indicating sources were modified before compilation).
-
Field Details
-
LOGGER
-
BUILD_PROPERTIES
-
-
Constructor Details
-
BuildInfo
public BuildInfo()
-
-
Method Details
-
getBuildInfo
-
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
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
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
-