public class ExecHandleBuilder extends AbstractExecHandleBuilder implements ExecSpec
| Constructor and Description |
|---|
ExecHandleBuilder() |
ExecHandleBuilder(FileResolver fileResolver) |
| Modifier and Type | Method and Description |
|---|---|
ExecSpec |
args(java.lang.Iterable<?> args)
Adds arguments for the command to be executed.
|
ExecHandleBuilder |
args(java.lang.Object... args)
Adds arguments for the command to be executed.
|
ExecSpec |
commandLine(java.lang.Iterable<?> args)
Sets the full command line, including the executable to be executed plus its arguments.
|
ExecHandleBuilder |
commandLine(java.lang.Object... arguments)
Sets the full command line, including the executable to be executed plus its arguments.
|
java.util.List<java.lang.String> |
getAllArguments() |
java.util.List<java.lang.String> |
getArgs()
Returns the arguments for the command to be executed.
|
ExecHandleBuilder |
setArgs(java.lang.Iterable<?> arguments)
Sets the arguments for the command to be executed.
|
void |
setCommandLine(java.lang.Iterable<?> args)
Sets the full command line, including the executable to be executed plus its arguments.
|
void |
setCommandLine(java.lang.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(java.lang.Object... arguments)
ExecSpeccommandLine in interface ExecSpecarguments - the command plus the args to be executedpublic ExecSpec commandLine(java.lang.Iterable<?> args)
ExecSpeccommandLine in interface ExecSpecargs - the command plus the args to be executedpublic void setCommandLine(java.lang.Object... args)
ExecSpecsetCommandLine in interface ExecSpecargs - the command plus the args to be executedpublic void setCommandLine(java.lang.Iterable<?> args)
ExecSpecsetCommandLine in interface ExecSpecargs - the command plus the args to be executedpublic ExecHandleBuilder args(java.lang.Object... args)
ExecSpecpublic ExecSpec args(java.lang.Iterable<?> args)
ExecSpecpublic ExecHandleBuilder setArgs(java.lang.Iterable<?> arguments)
ExecSpecpublic java.util.List<java.lang.String> getArgs()
ExecSpecpublic java.util.List<java.lang.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