|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jenkinsci.plugins.darcs.cmd.DarcsCommand
public class DarcsCommand
Abstracts Darcs command.
Method Summary | |
---|---|
static DarcsCommandBuilder |
builder(String darcsExe)
Main entry point to obtain a command builder. |
int |
execute(hudson.Launcher.ProcStarter proc)
Executes the command by joining the passed in process starter. |
OutputStream |
getErr()
Get output stream which records STDOUT. |
OutputStream |
getOut()
Get output stream which records STDOUT. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DarcsCommandBuilder builder(String darcsExe)
darcsExe
- name of Darcs executable, e.g. "darcs" or "/usr/local/bin/darcs"
public int execute(hudson.Launcher.ProcStarter proc) throws IOException, InterruptedException
proc
- used to join the command
IOException
- if there's an error launching/joining a process
InterruptedException
- if a thread is waiting, sleeping, or otherwise occupied, and the thread is
interrupted, either before or during the activitypublic OutputStream getOut()
public OutputStream getErr()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |