java.lang.Object
com.irurueta.navigation.inertial.calibration.BuildInfo

public class BuildInfo extends Object
Contains build data of this library.
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      This class logger.
    • BUILD_INFO_PROPERTIES

      private static final String 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

      private static final String BUILD_TIMESTAMP_KEY
      Key to get the build timestamp from the properties file.
      See Also:
    • GROUP_ID_KEY

      private static final String GROUP_ID_KEY
      Key to get groupID of this library from the properties file.
      See Also:
    • ARTIFACT_ID_KEY

      private static final String ARTIFACT_ID_KEY
      Key to get artifactId of this library from the properties file.
      See Also:
    • VERSION_KEY

      private static final String VERSION_KEY
      Key to get the version of this library from the properties file.
      See Also:
    • BUILD_NUMBER_KEY

      private static final String BUILD_NUMBER_KEY
      Key to get the build number from the properties file.
      See Also:
    • COMMIT_KEY

      private static final String COMMIT_KEY
      Key to get a build commit from the properties file.
      See Also:
    • BRANCH_KEY

      private static final String BRANCH_KEY
      Key to get the build branch from the properties file.
      See Also:
    • TIMESTAMP_FORMAT

      private static final String TIMESTAMP_FORMAT
      Format for build timestamp.
      See Also:
    • reference

      private static SoftReference<BuildInfo> reference
      Singleton stored in a soft reference (to keep it cached in memory unless memory is claimed).
    • buildTimestamp

      private Date buildTimestamp
      Build timestamp.
    • groupId

      private String groupId
      GroupId of this library.
    • artifactId

      private String artifactId
      ArtifactId of this library.
    • version

      private String version
      Version of this library.
    • buildNumber

      private String buildNumber
      Build number.
    • commit

      private String commit
      Build commit.
    • branch

      private String branch
      Build branch.
  • Constructor Details

    • BuildInfo

      private BuildInfo()
      Constructor.
  • Method Details

    • getInstance

      public static BuildInfo getInstance()
      Gets singleton instance.
      Returns:
      singleton instance.
    • getBuildTimestamp

      public Date getBuildTimestamp()
      Obtains build timestamp.
      Returns:
      build timestamp.
    • getGroupId

      public String getGroupId()
      Obtains groupId of this library.
      Returns:
      groupId of this library.
    • getArtifactId

      public String getArtifactId()
      Gets artifactId of this library.
      Returns:
      artifactId of this library.
    • getVersion

      public String getVersion()
      Gets the version of this library.
      Returns:
      version of this library.
    • getBuildNumber

      public String getBuildNumber()
      Gets build number.
      Returns:
      build number.
    • getCommit

      public String getCommit()
      Obtains build commit.
      Returns:
      build commit.
    • getBranch

      public String getBranch()
      Obtains build branch.
      Returns:
      build branch.