public class Command extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(String... args) |
void |
addAll(Collection<String> args) |
Command |
arg(String... args) |
void |
cancel() |
int |
execute(Appendable stdout,
Appendable stderr) |
int |
execute(InputStream in,
Appendable stdout,
Appendable stderr) |
int |
execute(String input,
Appendable stdout,
Appendable stderr) |
Command |
full(String full) |
List<String> |
getArguments() |
void |
inherit() |
static boolean |
needsWindowsQuoting(String s) |
void |
setCwd(File dir) |
void |
setReporter(Reporter reporter) |
void |
setTimeout(long duration,
TimeUnit unit) |
void |
setTrace() |
void |
setUseThreadForInput(boolean useThreadForInput) |
String |
toString() |
void |
var(Map<String,String> env) |
String |
var(String name) |
Command |
var(String name,
String value) |
static String |
windowsQuote(String s) |
public Command(String fullCommand)
public Command()
public int execute(Appendable stdout, Appendable stderr) throws Exception
Exceptionpublic int execute(String input, Appendable stdout, Appendable stderr) throws Exception
Exceptionpublic static boolean needsWindowsQuoting(String s)
public int execute(InputStream in, Appendable stdout, Appendable stderr) throws Exception
Exceptionpublic void add(String... args)
public void addAll(Collection<String> args)
public void setTimeout(long duration,
TimeUnit unit)
public void setTrace()
public void setReporter(Reporter reporter)
public void setCwd(File dir)
public void cancel()
public void inherit()
public void setUseThreadForInput(boolean useThreadForInput)
Copyright © 2019 aQute SARL. All rights reserved.