Package org.omegazero.common
Class OmzLib
java.lang.Object
org.omegazero.common.OmzLib
This class contains metadata about omz-java-lib (for example the version string).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the version string.static void
Prints the version string and configured log level using aLogger
from the logging library.
-
Field Details
-
VERSION
The version string of omz-java-lib.This value is set by the CI build pipeline based on the event that triggered the build. Otherwise, this string is always
"$BUILDVERSION"
.getVersion()
should be used to retrieve the value to prevent compile-time string inlining.- See Also:
-
-
Constructor Details
-
OmzLib
public OmzLib()
-
-
Method Details
-
printBrand
public static void printBrand()Prints the version string and configured log level using aLogger
from the logging library. If the library is not available, the string is printed toSystem.err
. -
getVersion
Returns the version string.- Returns:
- The version string
- Since:
- 2.9
-