Class GitCommandLineUtils
- java.lang.Object
- 
- org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils
 
- 
 public final class GitCommandLineUtils extends Object Command line construction utility.- Author:
- Brett Porter, Mark Struberg
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringVARIABLE_GIT_SSH_COMMAND
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddTarget(org.codehaus.plexus.util.cli.Commandline commandLine, List<File> files)static intexecute(org.codehaus.plexus.util.cli.Commandline commandLine, org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stdout, org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr)static intexecute(org.codehaus.plexus.util.cli.Commandline commandline, org.codehaus.plexus.util.cli.StreamConsumer consumer, org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr)static org.codehaus.plexus.util.cli.CommandlinegetBaseGitCommandLine(File workingDirectory, String command)Use this only for commands not requiring environment variables (i.e.static org.codehaus.plexus.util.cli.CommandlinegetBaseGitCommandLine(File workingDirectory, String command, GitScmProviderRepository repository, Map<String,String> environment)Use this for commands requiring environment variables (i.e.
 
- 
- 
- 
Field Detail- 
VARIABLE_GIT_SSH_COMMANDpublic static final String VARIABLE_GIT_SSH_COMMAND - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
addTargetpublic static void addTarget(org.codehaus.plexus.util.cli.Commandline commandLine, List<File> files) 
 - 
getBaseGitCommandLinepublic static org.codehaus.plexus.util.cli.Commandline getBaseGitCommandLine(File workingDirectory, String command) Use this only for commands not requiring environment variables (i.e. local commands).
 - 
getBaseGitCommandLinepublic static org.codehaus.plexus.util.cli.Commandline getBaseGitCommandLine(File workingDirectory, String command, GitScmProviderRepository repository, Map<String,String> environment) Use this for commands requiring environment variables (i.e. remote commands).
 - 
executepublic static int execute(org.codehaus.plexus.util.cli.Commandline commandline, org.codehaus.plexus.util.cli.StreamConsumer consumer, org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr) throws ScmException - Throws:
- ScmException
 
 - 
executepublic static int execute(org.codehaus.plexus.util.cli.Commandline commandLine, org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stdout, org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr) throws ScmException - Throws:
- ScmException
 
 
- 
 
-