public final class GitCommandLineUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
VARIABLE_GIT_SSH_COMMAND |
Modifier and Type | Method and Description |
---|---|
static void |
addTarget(org.codehaus.plexus.util.cli.Commandline cl,
List<File> files) |
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) |
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) |
static org.codehaus.plexus.util.cli.Commandline |
getBaseGitCommandLine(File workingDirectory,
String command)
Use this only for commands not requiring environment variables (i.e.
|
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.
|
public static final String VARIABLE_GIT_SSH_COMMAND
public static void addTarget(org.codehaus.plexus.util.cli.Commandline cl, List<File> files)
public static org.codehaus.plexus.util.cli.Commandline getBaseGitCommandLine(File workingDirectory, String command)
workingDirectory
- command
- public static org.codehaus.plexus.util.cli.Commandline getBaseGitCommandLine(File workingDirectory, String command, GitScmProviderRepository repository, Map<String,String> environment)
workingDirectory
- command
- environment
- 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) 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) throws ScmException
ScmException
Copyright © 2003–2024 The Apache Software Foundation. All rights reserved.