Class VersionInfo


  • public final class VersionInfo
    extends Object
    • Field Detail

      • OUR_FULL_VERSION

        public static final IVersionInfo OUR_FULL_VERSION
    • Constructor Detail

      • VersionInfo

        public VersionInfo()
    • Method Detail

      • getFromClasspath

        public static IVersionInfo getFromClasspath​(String cp)
        Look for the version of storm defined by the given classpath.
        Parameters:
        cp - the classpath as a string to be parsed.
        Returns:
        the IVersionInfo or null.
      • getFromClasspath

        public static IVersionInfo getFromClasspath​(List<String> classpath)
        Look for the version of storm defined by the given classpath.
        Parameters:
        classpath - the classpath as list of files/directories.
        Returns:
        the IVersionInfo or null.
      • getVersion

        public static String getVersion()
        Get the version number of the build.
        Returns:
        the version number of the build.
      • getRevision

        public static String getRevision()
        Get the SCM revision number of the build.
        Returns:
        the SCM revision number of the build.
      • getBranch

        public static String getBranch()
        Get the SCM branch of the build.
        Returns:
        the SCM branch of the build.
      • getDate

        public static String getDate()
        Get the date/time the build happened.
        Returns:
        the date/time of the build.
      • getUser

        public static String getUser()
        Get the name of the user that did the build.
        Returns:
        the name of the user that did the build.
      • getUrl

        public static String getUrl()
        Get the full SCM URL for the build.
        Returns:
        the SCM URL of the build.
      • getSrcChecksum

        public static String getSrcChecksum()
        Get the checksum of the source.
        Returns:
        the checksum of the source.
      • getBuildVersion

        public static String getBuildVersion()
        Get a descriptive representation of the build meant for human consumption.
        Returns:
        a descriptive representation of the build.
      • main

        public static void main​(String[] args)