Class GitRevision

java.lang.Object
br.net.dd.netherwingcore.common.GitRevision

public class GitRevision extends Object
The RevisionData class provides a utility for retrieving various metadata about the software, including version information, commit details, and database revisions. This information is loaded from a properties file, typically named revision_data.properties, which is expected to be available in the classpath.

Example use cases include displaying version information in "About" dialogs, embedding software revision details in logs, and tracking database schema versions.

  • Constructor Details

    • GitRevision

      public GitRevision()
  • Method Details

    • getCommitHash

      public static String getCommitHash()
      Returns:
      the Git commit hash of the current build.
    • getCommitDate

      public static String getCommitDate()
      Returns:
      the date of the Git commit for the current build.
    • getGitCommitBranch

      public static String getGitCommitBranch()
      Returns:
      the name of the Git branch used for the current build.
    • getFullDatabaseRevision

      public static String getFullDatabaseRevision()
      Returns:
      the full database revision identifier.
    • getHotfixDatabaseRevision

      public static String getHotfixDatabaseRevision()
      Returns:
      the database revision identifier for hotfixes.
    • getCompanyName

      public static String getCompanyName()
      Returns:
      the name of the company responsible for this software.
    • getLegalCopyright

      public static String getLegalCopyright()
      Returns:
      the legal copyright notice for the software.
    • getFileVersion

      public static String getFileVersion()
      Returns:
      the version of the file associated with this software build.
    • getFullVersion

      public static String getFullVersion()
      Returns:
      the full version string for the product, including the product name, version, platform, and linkage type.
    • getProductName

      public static String getProductName()
      Returns:
      the name of the product.
    • getProductDescription

      public static String getProductDescription()
      Returns:
      the description of the product.