Package com.irurueta.numerical
Class BuildInfo
java.lang.Object
com.irurueta.numerical.BuildInfo
Contains build data of this library.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
Key to obtain artifactId of this library from properties file.private String
ArtifactId of this library.private String
Build branch.private static final String
Key to obtain build branch from properties file.private static final String
Location of properties file that contains build data.private static final String
Key to obtain build number from properties file.private static final String
Key to obtain build timestamp from properties file.private String
Build number.private Date
Build timestamp.private String
Build commit.private static final String
Key to obtain build commit from properties file.private static final String
Key to obtain groupID of this library from 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 obtain version of this library from properties file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains artifactId of this library.Obtains build branch.Obtains build number.Obtains build timestamp.Obtains build commit.Obtains groupId of this library.static BuildInfo
Obtains singleton instance.Obtains version of this library.
-
Field Details
-
LOGGER
This class logger. -
BUILD_INFO_PROPERTIES
Location of 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 obtain build timestamp from properties file.- See Also:
-
GROUP_ID_KEY
Key to obtain groupID of this library from properties file.- See Also:
-
ARTIFACT_ID_KEY
Key to obtain artifactId of this library from properties file.- See Also:
-
VERSION_KEY
Key to obtain version of this library from properties file.- See Also:
-
BUILD_NUMBER_KEY
Key to obtain build number from properties file.- See Also:
-
COMMIT_KEY
Key to obtain build commit from properties file.- See Also:
-
BRANCH_KEY
Key to obtain build branch from 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
Obtains singleton instance.- Returns:
- singleton instance.
-
getBuildTimestamp
Obtains build timestamp.- Returns:
- build timestamp.
-
getGroupId
Obtains groupId of this library.- Returns:
- groupId of this library.
-
getArtifactId
Obtains artifactId of this library.- Returns:
- artifactId of this library.
-
getVersion
Obtains version of this library.- Returns:
- version of this library.
-
getBuildNumber
Obtains build number.- Returns:
- build number.
-
getCommit
Obtains build commit.- Returns:
- build commit.
-
getBranch
Obtains build branch.- Returns:
- build branch.
-