Package org.openapitools.codegen.cmd
Class BuildInfo
- java.lang.Object
-
- org.openapitools.codegen.cmd.BuildInfo
-
public class BuildInfo extends java.lang.ObjectPresents build-time information
-
-
Constructor Summary
Constructors Constructor Description BuildInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.OffsetDateTimegetBuildTime()Gets the time when this tool was built.java.lang.StringgetSha()Gets the git commit SHA1 hash.java.lang.StringgetVersion()Gets the version of the toolset.java.lang.StringversionDisplayText()Gets the full version display text, as one would expect from a '--version' CLI option
-
-
-
Method Detail
-
getVersion
public java.lang.String getVersion()
Gets the version of the toolset.- Returns:
- A semver string
-
getSha
public java.lang.String getSha()
Gets the git commit SHA1 hash. Useful for differentiating between SNAPSHOT builds.- Returns:
- A short git SHA
-
getBuildTime
public java.time.OffsetDateTime getBuildTime()
Gets the time when this tool was built.- Returns:
- The time as
OffsetDateTime, orOffsetDateTime.MINif metadata cannot be parsed.
-
versionDisplayText
public java.lang.String versionDisplayText()
Gets the full version display text, as one would expect from a '--version' CLI option- Returns:
- Human-readable version display information
-
-