Class BuildInfo
java.lang.Object
com.irurueta.navigation.inertial.calibration.BuildInfo
Contains build data of this library.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringKey to get artifactId of this library from the properties file.private StringArtifactId of this library.private StringBuild branch.private static final StringKey to get the build branch from the properties file.private static final StringProperties file that contains build data.private static final StringKey to get the build number from the properties file.private static final StringKey to get the build timestamp from the properties file.private StringBuild number.private DateBuild timestamp.private StringBuild commit.private static final StringKey to get a build commit from the properties file.private static final StringKey to get groupID of this library from the properties file.private StringGroupId of this library.private static final LoggerThis class logger.private static SoftReference<BuildInfo> Singleton stored in a soft reference (to keep it cached in memory unless memory is claimed).private static final StringFormat for build timestamp.private StringVersion of this library.private static final StringKey to get the version of this library from the properties file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets artifactId of this library.Obtains build branch.Gets build number.Obtains build timestamp.Obtains build commit.Obtains groupId of this library.static BuildInfoGets singleton instance.Gets the version of this library.
-
Field Details
-
LOGGER
This class logger. -
BUILD_INFO_PROPERTIES
Properties file that contains build data. Build data is stored in this file, which is modified each time that compilation is run in the CI server.- See Also:
-
BUILD_TIMESTAMP_KEY
Key to get the build timestamp from the properties file.- See Also:
-
GROUP_ID_KEY
Key to get groupID of this library from the properties file.- See Also:
-
ARTIFACT_ID_KEY
Key to get artifactId of this library from the properties file.- See Also:
-
VERSION_KEY
Key to get the version of this library from the properties file.- See Also:
-
BUILD_NUMBER_KEY
Key to get the build number from the properties file.- See Also:
-
COMMIT_KEY
Key to get a build commit from the properties file.- See Also:
-
BRANCH_KEY
Key to get the build branch from the properties file.- See Also:
-
TIMESTAMP_FORMAT
Format for build timestamp.- See Also:
-
reference
Singleton stored in a soft reference (to keep it cached in memory unless memory is claimed). -
buildTimestamp
Build timestamp. -
groupId
GroupId of this library. -
artifactId
ArtifactId of this library. -
version
Version of this library. -
buildNumber
Build number. -
commit
Build commit. -
branch
Build branch.
-
-
Constructor Details
-
BuildInfo
private BuildInfo()Constructor.
-
-
Method Details
-
getInstance
Gets singleton instance.- Returns:
- singleton instance.
-
getBuildTimestamp
Obtains build timestamp.- Returns:
- build timestamp.
-
getGroupId
Obtains groupId of this library.- Returns:
- groupId of this library.
-
getArtifactId
Gets artifactId of this library.- Returns:
- artifactId of this library.
-
getVersion
Gets the version of this library.- Returns:
- version of this library.
-
getBuildNumber
Gets build number.- Returns:
- build number.
-
getCommit
Obtains build commit.- Returns:
- build commit.
-
getBranch
Obtains build branch.- Returns:
- build branch.
-