public class CLI extends Object
| Constructor and Description |
|---|
CLI(URL hudson) |
CLI(URL hudson,
ExecutorService exec) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
execute(List<String> args) |
int |
execute(List<String> args,
InputStream stdin,
OutputStream stdout,
OutputStream stderr) |
int |
execute(String... args) |
boolean |
hasCommand(String name)
Returns true if the named command exists.
|
static void |
main(String[] _args) |
public CLI(URL hudson) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic CLI(URL hudson, ExecutorService exec) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void close()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int execute(List<String> args, InputStream stdin, OutputStream stdout, OutputStream stderr)
public int execute(String... args)
public boolean hasCommand(String name)
Copyright © 2004-2016 Hudson. All Rights Reserved.