|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jenkinsci.plugins.darcs.cmd.DarcsCommand
public class DarcsCommand
Abstracts Darcs command.
Field Summary | |
---|---|
private ArgumentListBuilder |
args
Argument list representing the command. |
private OutputStream |
err
Records STDERR of command. |
private OutputStream |
out
Records STDOUT of command. |
Constructor Summary | |
---|---|
DarcsCommand(ArgumentListBuilder args)
Default constructor. |
Method Summary | |
---|---|
static DarcsCommandBuilder |
builder(String darcsExe)
Main entry point to obtain a command builder. |
int |
execute(Launcher.ProcStarter proc)
Executes the command by joining the passed in process starter. |
(package private) ArgumentListBuilder |
getArgs()
Get the arguments. |
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 |
Field Detail |
---|
private final ArgumentListBuilder args
private final OutputStream out
private final OutputStream err
Constructor Detail |
---|
DarcsCommand(ArgumentListBuilder args)
args
- generated argument list from a builderMethod Detail |
---|
public static DarcsCommandBuilder builder(String darcsExe)
darcsExe
- name of Darcs executable, e.g. "darcs" or "/usr/local/bin/darcs"
public int execute(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()
ArgumentListBuilder getArgs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |