Class IipVersion
java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.IipVersion
Provides access to version and buildId of the platform. The data is stored in a file but modified accordingly by
the CI for the deployed artifacts.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate static IipVersionprivate booleanstatic final Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the build id of the IIP-Ecosphere platform.static IipVersionReturns the singleton instance of this class.Returns the version of the IIP-Ecosphere platform.Formats version and build id for printout.booleanReturns whether the build id is set.booleanReturns whether this instance of the IIP-Ecosphere platform is a release version.
-
Field Details
-
MAVEN_SNAPSHOT_POSTFIX
- See Also:
-
instance
-
version
-
buildId
-
isRelease
private boolean isRelease
-
-
Constructor Details
-
IipVersion
private IipVersion()Initializes this instance. Prevents external creation.
-
-
Method Details
-
getInstance
Returns the singleton instance of this class.- Returns:
- the singleton instance
-
getVersion
Returns the version of the IIP-Ecosphere platform.- Returns:
- the version, may be empty if unknown
-
getBuildId
Returns the build id of the IIP-Ecosphere platform.- Returns:
- the build id, may be "??" if unknown
-
isBuildIdSet
public boolean isBuildIdSet()Returns whether the build id is set.- Returns:
truefor is set,falseelse
-
isRelease
public boolean isRelease()Returns whether this instance of the IIP-Ecosphere platform is a release version.- Returns:
truefor release version,falseelse
-
getVersionInfo
Formats version and build id for printout.- Returns:
- the formatted version
-