Package org.apache.openjpa.lib.util.git
Class GitUtils
java.lang.Object
org.apache.openjpa.lib.util.git.GitUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
convertGitInfoToPCEnhancerVersion
(String gitinfo) A public worker method that takes the output from running the ant script in the pom.xml that removes the trailing 'M' produced with builds that have uncommitted changes.
-
Constructor Details
-
GitUtils
public GitUtils()
-
-
Method Details
-
convertGitInfoToPCEnhancerVersion
A public worker method that takes the output from running the ant script in the pom.xml that removes the trailing 'M' produced with builds that have uncommitted changes. For example: fef543bM to fef543b (267342907)- Parameters:
gitinfo
-- Returns:
- The formatted int version, or -1 if gitinfo is null or unparsable.
-