Class OmzLib

java.lang.Object
org.omegazero.common.OmzLib

public class OmzLib extends Object
This class contains metadata about omz-java-lib (for example the version string).
  • Field Details

    • VERSION

      public static final String 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 a Logger from the logging library. If the library is not available, the string is printed to System.err.
    • getVersion

      public static String getVersion()
      Returns the version string.
      Returns:
      The version string
      Since:
      2.9