Class GitCommandLineUtils
java.lang.Object
org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils
Command line construction utility.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate static voidcomposeCommand(File workingDirectory, String command, org.codehaus.plexus.util.cli.Commandline commandLine) 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) private static org.codehaus.plexus.util.cli.CommandlinegetAnonymousBaseGitCommandLine(File workingDirectory, String command) Creates aCommandlinefor which toString() does not display the password.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.prepareEnvVariablesForRepository(GitScmProviderRepository repository, Map<String, String> environmentVariables)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
VARIABLE_GIT_SSH_COMMAND
- See Also:
-
-
Constructor Details
-
GitCommandLineUtils
private GitCommandLineUtils()
-
-
Method Details
-
addTarget
-
getBaseGitCommandLine
-
getBaseGitCommandLine
-
getAnonymousBaseGitCommandLine
-
composeCommand
-
execute
public 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
-
execute
public 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
-
prepareEnvVariablesForRepository
-