Class GitCommandLineUtils
- java.lang.Object
-
- org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils
-
public final class GitCommandLineUtils extends java.lang.Object
Command line construction utility.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
GitCommandLineUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addTarget(org.codehaus.plexus.util.cli.Commandline cl, java.util.List<java.io.File> files)
private static void
composeCommand(java.io.File workingDirectory, java.lang.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(java.io.File workingDirectory, java.lang.String command)
Creates aCommandline
for which the toString() do not display password.static org.codehaus.plexus.util.cli.Commandline
getBaseGitCommandLine(java.io.File workingDirectory, java.lang.String command)
-
-
-
Method Detail
-
addTarget
public static void addTarget(org.codehaus.plexus.util.cli.Commandline cl, java.util.List<java.io.File> files)
-
getBaseGitCommandLine
public static org.codehaus.plexus.util.cli.Commandline getBaseGitCommandLine(java.io.File workingDirectory, java.lang.String command)
- Parameters:
workingDirectory
-command
-- Returns:
-
getAnonymousBaseGitCommandLine
private static org.codehaus.plexus.util.cli.Commandline getAnonymousBaseGitCommandLine(java.io.File workingDirectory, java.lang.String command)
Creates aCommandline
for which the toString() do not display password.- Parameters:
workingDirectory
-command
-- Returns:
- CommandLine with anonymous output.
-
composeCommand
private static void composeCommand(java.io.File workingDirectory, java.lang.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
-
-