Class GitUtils


  • public class GitUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GitUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int convertGitInfoToPCEnhancerVersion​(java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GitUtils

        public GitUtils()
    • Method Detail

      • convertGitInfoToPCEnhancerVersion

        public static int convertGitInfoToPCEnhancerVersion​(java.lang.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. For example: fef543bM to fef543b (267342907)
        Parameters:
        gitinfo -
        Returns:
        The formatted int version, or -1 if gitinfo is null or unparsable.