public class EmbeddedCommandRunner
extends java.lang.Object
| Constructor and Description |
|---|
EmbeddedCommandRunner(java.lang.String rootDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.String[] argv,
java.io.InputStream in,
java.io.OutputStream out,
java.io.OutputStream err)
Execute a command.
|
protected org.eclipse.jgit.lib.Repository |
openGitDir(java.lang.String gitdir)
Evaluate the
--git-dir option and open the repository. |
public void execute(java.lang.String[] argv,
java.io.InputStream in,
java.io.OutputStream out,
java.io.OutputStream err)
throws java.lang.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 usedjava.lang.Exception - if an error occursprotected org.eclipse.jgit.lib.Repository openGitDir(java.lang.String gitdir)
throws java.io.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.java.io.IOException - the repository cannot be opened.Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.