Class GitRevision
java.lang.Object
br.net.dd.netherwingcore.common.GitRevision
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
- Returns:
- the Git commit hash of the current build.
-
getCommitDate
- Returns:
- the date of the Git commit for the current build.
-
getGitCommitBranch
- Returns:
- the name of the Git branch used for the current build.
-
getFullDatabaseRevision
- Returns:
- the full database revision identifier.
-
getHotfixDatabaseRevision
- Returns:
- the database revision identifier for hotfixes.
-
getCompanyName
- Returns:
- the name of the company responsible for this software.
-
getLegalCopyright
- Returns:
- the legal copyright notice for the software.
-
getFileVersion
- Returns:
- the version of the file associated with this software build.
-
getFullVersion
- Returns:
- the full version string for the product, including the product name, version, platform, and linkage type.
-
getProductName
- Returns:
- the name of the product.
-
getProductDescription
- Returns:
- the description of the product.
-