public class EmbeddedCommandRunner extends Object
| Constructor and Description |
|---|
EmbeddedCommandRunner(String rootDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(String[] argv,
InputStream in,
OutputStream out,
OutputStream err)
Execute a command.
|
protected org.eclipse.jgit.lib.Repository |
openGitDir(String gitdir)
Evaluate the
--git-dir option and open the repository. |
public EmbeddedCommandRunner(String rootDir)
public void execute(String[] argv, InputStream in, OutputStream out, OutputStream err) throws Exception
argv - the command and its argumentsin - the input stream, may be null in which case the system input stream will be usedout - the output stream, may be null in which case the system output stream will be usederr - the error stream, may be null in which case the system error stream will be usedException - if an error occursprotected org.eclipse.jgit.lib.Repository openGitDir(String gitdir) throws IOException
--git-dir option and open the repository.gitdir - the --git-dir option given on the command line. May be
null if it was not supplied.IOException - the repository cannot be opened.Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.