public class ExecHandleBuilder extends AbstractExecHandleBuilder implements ExecSpec
| Constructor and Description |
|---|
ExecHandleBuilder() |
ExecHandleBuilder(FileResolver fileResolver) |
| Modifier and Type | Method and Description |
|---|---|
ExecSpec |
args(Iterable<?> args)
Adds arguments for the command to be executed.
|
ExecHandleBuilder |
args(Object... args)
Adds arguments for the command to be executed.
|
ExecSpec |
commandLine(Iterable<?> args)
Sets the full command line, including the executable to be executed plus its arguments.
|
ExecHandleBuilder |
commandLine(Object... arguments)
Sets the full command line, including the executable to be executed plus its arguments.
|
List<String> |
getAllArguments() |
List<String> |
getArgs()
Returns the arguments for the command to be executed.
|
ExecHandleBuilder |
setArgs(Iterable<?> arguments)
Sets the arguments for the command to be executed.
|
void |
setCommandLine(Iterable<?> args)
Sets the full command line, including the executable to be executed plus its arguments.
|
void |
setCommandLine(Object... args)
Sets the full command line, including the executable to be executed plus its arguments.
|
ExecHandleBuilder |
setIgnoreExitValue(boolean ignoreExitValue)
Sets whether a non-zero exit value is ignored, or an exception thrown.
|
build, getCommandLine, getDisplayName, getErrorOutput, getStandardInput, getStandardOutput, isIgnoreExitValue, listener, setDisplayName, setErrorOutput, setStandardInput, setStandardOutputcopyTo, environment, environment, executable, getActualEnvironment, getEnvironment, getExecutable, getResolver, getWorkingDir, setEnvironment, setExecutable, setWorkingDir, workingDirclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandLine, getErrorOutput, getStandardInput, getStandardOutput, isIgnoreExitValue, setErrorOutput, setStandardInput, setStandardOutputcopyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setWorkingDir, workingDirpublic ExecHandleBuilder()
public ExecHandleBuilder(FileResolver fileResolver)
public ExecHandleBuilder commandLine(Object... arguments)
ExecSpeccommandLine in interface ExecSpecarguments - the command plus the args to be executedpublic ExecSpec commandLine(Iterable<?> args)
ExecSpeccommandLine in interface ExecSpecargs - the command plus the args to be executedpublic void setCommandLine(Object... args)
ExecSpecsetCommandLine in interface ExecSpecargs - the command plus the args to be executedpublic void setCommandLine(Iterable<?> args)
ExecSpecsetCommandLine in interface ExecSpecargs - the command plus the args to be executedpublic ExecHandleBuilder args(Object... args)
ExecSpecpublic ExecSpec args(Iterable<?> args)
ExecSpecpublic ExecHandleBuilder setArgs(Iterable<?> arguments)
ExecSpecpublic List<String> getArgs()
ExecSpecpublic List<String> getAllArguments()
getAllArguments in class AbstractExecHandleBuilderpublic ExecHandleBuilder setIgnoreExitValue(boolean ignoreExitValue)
BaseExecSpecsetIgnoreExitValue in interface BaseExecSpecsetIgnoreExitValue in class AbstractExecHandleBuilderignoreExitValue - whether a non-zero exit value is ignored, or an exception thrownCopyright © 2013. All rights reserved