Package com.github.toolarium.common
Class Version
java.lang.Object
com.github.toolarium.common.Version
The version class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe build timestampstatic final StringThe component idstatic final StringThe descriptionstatic final StringThe group idstatic final booleanDefine if it is a release versionstatic final StringThe licensestatic final StringThe license organisationstatic final intThe major numberstatic final intThe minor numberstatic final StringThe packagestatic final StringThe project namestatic final StringThe project typestatic final StringThe version qualifierstatic final intThe revision numberstatic final StringThe source management numberstatic final StringThe url of the projectstatic final StringThe full version number -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGet the version numberstatic voidMain class to print build / version information
-
Field Details
-
PROJECT_NAME
The project name- See Also:
-
GROUP_ID
The group id- See Also:
-
COMPONENT_ID
The component id- See Also:
-
PROJECT_TYPE
The project type- See Also:
-
PACKAGE
The package- See Also:
-
DESCRIPTION
The description- See Also:
-
URL
The url of the project- See Also:
-
LICENSE
The license- See Also:
-
LICENSE_ORGANISATION
The license organisation- See Also:
-
MAJOR_NUMBER
public static final int MAJOR_NUMBERThe major number- See Also:
-
MINOR_NUMBER
public static final int MINOR_NUMBERThe minor number- See Also:
-
REVISION_NUMBER
public static final int REVISION_NUMBERThe revision number- See Also:
-
QUALIFIER
The version qualifier- See Also:
-
SCM_NUMBER
The source management number- See Also:
-
BUILD_TIMESTAMP
The build timestamp- See Also:
-
IS_RELEASE_VERSION
public static final boolean IS_RELEASE_VERSIONDefine if it is a release version- See Also:
-
VERSION
The full version number- See Also:
-
-
Constructor Details
-
Version
public Version()
-
-
Method Details
-
main
Main class to print build / version information- Parameters:
args- the arguments
-
getVersion
Get the version number- Returns:
- the version number
-