Package org.cyclos
Class CyclosVersion
- java.lang.Object
-
- org.cyclos.CyclosVersion
-
public class CyclosVersion extends Object
Provides access to the current Cyclos version
-
-
Constructor Summary
Constructors Constructor Description CyclosVersion()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringget()Returns the full version number as stringstatic StringgetCommitId()Returns the GIT commit IDstatic intgetPart(int index)Returns a version number part.static StringgetQualifier()Returns the version qualifier.static booleanisCommitIdKnown()Returns whether the GIT commit ID is known
-
-
-
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
-
-