public final class GitCommandLineUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
GitCommandLineUtils() |
Modifier and Type | Method and 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 a
Commandline for which the toString() do not display
password. |
static org.codehaus.plexus.util.cli.Commandline |
getBaseGitCommandLine(java.io.File workingDirectory,
java.lang.String command) |
public static void addTarget(org.codehaus.plexus.util.cli.Commandline cl, java.util.List<java.io.File> files)
public static org.codehaus.plexus.util.cli.Commandline getBaseGitCommandLine(java.io.File workingDirectory, java.lang.String command)
workingDirectory
- command
- private static org.codehaus.plexus.util.cli.Commandline getAnonymousBaseGitCommandLine(java.io.File workingDirectory, java.lang.String command)
Commandline
for which the toString() do not display
password.workingDirectory
- command
- private static void composeCommand(java.io.File workingDirectory, java.lang.String command, org.codehaus.plexus.util.cli.Commandline cl)
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
ScmException
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
ScmException