Class GitCommandLineUtils
- java.lang.Object
-
- org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils
-
public final class GitCommandLineUtils extends java.lang.ObjectCommand line construction utility.- Author:
- Brett Porter, Mark Struberg
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddTarget(org.codehaus.plexus.util.cli.Commandline cl, java.util.List<java.io.File> files)static intexecute(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 intexecute(org.codehaus.plexus.util.cli.Commandline cl, org.codehaus.plexus.util.cli.StreamConsumer consumer, org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr, ScmLogger logger)static org.codehaus.plexus.util.cli.CommandlinegetBaseGitCommandLine(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:
-
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
-
-