Class BuildInfo
java.lang.Object
com.irurueta.navigation.inertial.calibration.BuildInfo
Contains build data of this library.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
Key to get artifactId of this library from the properties file.private String
ArtifactId of this library.private String
Build branch.private static final String
Key to get the build branch from the properties file.private static final String
Properties file that contains build data.private static final String
Key to get the build number from the properties file.private static final String
Key to get the build timestamp from the properties file.private String
Build number.private Date
Build timestamp.private String
Build commit.private static final String
Key to get a build commit from the properties file.private static final String
Key to get groupID of this library from the properties file.private String
GroupId of this library.private static final Logger
This 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 String
Format for build timestamp.private String
Version of this library.private static final String
Key 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 BuildInfo
Gets 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.
-