public abstract class AbstractExecHandleBuilder extends DefaultProcessForkOptions implements BaseExecSpec
| Constructor and Description |
|---|
AbstractExecHandleBuilder(FileResolver fileResolver) |
| Modifier and Type | Method and Description |
|---|---|
ExecHandle |
build() |
abstract List<String> |
getAllArguments() |
List<String> |
getCommandLine()
Returns the full command line, including the executable plus its arguments.
|
String |
getDisplayName() |
OutputStream |
getErrorOutput()
Returns the output stream to consume standard error from the process executing the command.
|
InputStream |
getStandardInput()
Returns the standard input stream for the process executing the command.
|
OutputStream |
getStandardOutput()
Returns the output stream to consume standard output from the process executing the command.
|
boolean |
isIgnoreExitValue()
Tells whether a non-zero exit value is ignored, or an exception thrown.
|
AbstractExecHandleBuilder |
listener(ExecHandleListener listener) |
void |
setDisplayName(String displayName) |
AbstractExecHandleBuilder |
setErrorOutput(OutputStream outputStream)
Sets the output stream to consume standard error from the process executing the command.
|
BaseExecSpec |
setIgnoreExitValue(boolean ignoreExitValue)
Sets whether a non-zero exit value is ignored, or an exception thrown.
|
AbstractExecHandleBuilder |
setStandardInput(InputStream inputStream)
Sets the standard input stream for the process executing the command.
|
AbstractExecHandleBuilder |
setStandardOutput(OutputStream outputStream)
Sets the output stream to consume standard output from the process executing the command.
|
copyTo, environment, environment, executable, getActualEnvironment, getEnvironment, getExecutable, getResolver, getWorkingDir, setEnvironment, setExecutable, setWorkingDir, workingDirclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setWorkingDir, workingDirpublic AbstractExecHandleBuilder(FileResolver fileResolver)
public List<String> getCommandLine()
BaseExecSpecgetCommandLine in interface BaseExecSpecpublic AbstractExecHandleBuilder setStandardInput(InputStream inputStream)
BaseExecSpecsetStandardInput in interface BaseExecSpecinputStream - The standard input stream for the process. Must not be null.public InputStream getStandardInput()
BaseExecSpecgetStandardInput in interface BaseExecSpecpublic AbstractExecHandleBuilder setStandardOutput(OutputStream outputStream)
BaseExecSpecsetStandardOutput in interface BaseExecSpecoutputStream - The standard output stream for the process. Must not be null.public OutputStream getStandardOutput()
BaseExecSpecSystem.out.getStandardOutput in interface BaseExecSpecpublic AbstractExecHandleBuilder setErrorOutput(OutputStream outputStream)
BaseExecSpecsetErrorOutput in interface BaseExecSpecoutputStream - The standard output error stream for the process. Must not be null.public OutputStream getErrorOutput()
BaseExecSpecSystem.err.getErrorOutput in interface BaseExecSpecpublic boolean isIgnoreExitValue()
BaseExecSpecfalse.isIgnoreExitValue in interface BaseExecSpecpublic BaseExecSpec setIgnoreExitValue(boolean ignoreExitValue)
BaseExecSpecsetIgnoreExitValue in interface BaseExecSpecignoreExitValue - whether a non-zero exit value is ignored, or an exception thrownpublic String getDisplayName()
public void setDisplayName(String displayName)
public AbstractExecHandleBuilder listener(ExecHandleListener listener)
public ExecHandle build()
Copyright © 2013. All rights reserved