Package org.cyclos

Class CyclosVersion


  • public class CyclosVersion
    extends Object
    Provides access to the current Cyclos version
    • Constructor Detail

      • CyclosVersion

        public CyclosVersion()
    • Method Detail

      • get

        public static String get()
        Returns the full version number as string
      • getCommitId

        public static String getCommitId()
        Returns the GIT commit ID
      • getPart

        public static int getPart​(int index)
        Returns a version number part. The valid parts are from zero to two, as we handle 2 or 3 components (for example, 4.0 or 4.0.1)
      • getQualifier

        public static String getQualifier()
        Returns the version qualifier. If none is set, assume RELEASE
      • isCommitIdKnown

        public static boolean isCommitIdKnown()
        Returns whether the GIT commit ID is known