Class BuildInfo

java.lang.Object
net.sf.colossus.util.BuildInfo

public class BuildInfo extends Object
Helper class to retrieve the Build information from build.properties file
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • BUILD_PROPERTIES

      private static final Properties BUILD_PROPERTIES
  • Constructor Details

    • BuildInfo

      public BuildInfo()
  • Method Details

    • getBuildInfo

      public static String getBuildInfo(boolean full)
    • getFullBuildInfoString

      public static 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 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 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