Class GitCommandLineUtils


  • public final class GitCommandLineUtils
    extends Object
    Command line construction utility.
    Author:
    Brett Porter, Mark Struberg
    • Method Detail

      • addTarget

        public static void addTarget​(org.codehaus.plexus.util.cli.Commandline cl,
                                     List<File> files)
      • getBaseGitCommandLine

        public static org.codehaus.plexus.util.cli.Commandline getBaseGitCommandLine​(File workingDirectory,
                                                                                     String command)
        Parameters:
        workingDirectory -
        command -
        Returns:
      • execute

        public static int execute​(org.codehaus.plexus.util.cli.Commandline cl,
                                  org.codehaus.plexus.util.cli.StreamConsumer consumer,
                                  org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr,
                                  ScmLogger logger)
                           throws ScmException
        Throws:
        ScmException
      • execute

        public static int execute​(org.codehaus.plexus.util.cli.Commandline cl,
                                  org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stdout,
                                  org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr,
                                  ScmLogger logger)
                           throws ScmException
        Throws:
        ScmException