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