Class GitCommandLineUtils

java.lang.Object
org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils

public final class GitCommandLineUtils extends Object
Command line construction utility.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addTarget(org.codehaus.plexus.util.cli.Commandline cl, List<File> files)
     
    private static void
    composeCommand(File workingDirectory, String command, org.codehaus.plexus.util.cli.Commandline cl)
     
    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)
     
    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)
     
    private static org.codehaus.plexus.util.cli.Commandline
    getAnonymousBaseGitCommandLine(File workingDirectory, String command)
    Creates a Commandline for which the toString() do not display password.
    static org.codehaus.plexus.util.cli.Commandline
    getBaseGitCommandLine(File workingDirectory, String command)
     

    Methods inherited from class java.lang.Object

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

    • GitCommandLineUtils

      private GitCommandLineUtils()
  • Method Details

    • 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:
      TODO
    • getAnonymousBaseGitCommandLine

      private static org.codehaus.plexus.util.cli.Commandline getAnonymousBaseGitCommandLine(File workingDirectory, String command)
      Creates a Commandline for which the toString() do not display password.
      Parameters:
      workingDirectory -
      command -
      Returns:
      CommandLine with anonymous output.
    • composeCommand

      private static void composeCommand(File workingDirectory, String command, org.codehaus.plexus.util.cli.Commandline cl)
    • 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