Package org.gradle.process
Interface BaseExecSpec
- All Superinterfaces:
- ProcessForkOptions
- All Known Subinterfaces:
- ExecSpec,- JavaExecSpec
- All Known Implementing Classes:
- AbstractExecTask,- Exec,- JavaExec,- RunTestExecutable
Specifies options for launching a child process.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the full command line, including the executable plus its arguments.Returns the output stream to consume standard error from the process executing the command.Returns the standard input stream for the process executing the command.Returns the output stream to consume standard output from the process executing the command.booleanTells whether a non-zero exit value is ignored, or an exception thrown.setErrorOutput(OutputStream outputStream) Sets the output stream to consume standard error from the process executing the command.setIgnoreExitValue(boolean ignoreExitValue) Sets whether a non-zero exit value is ignored, or an exception thrown.setStandardInput(InputStream inputStream) Sets the standard input stream for the process executing the command.setStandardOutput(OutputStream outputStream) Sets the output stream to consume standard output from the process executing the command.Methods inherited from interface org.gradle.process.ProcessForkOptionscopyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setExecutable, setWorkingDir, setWorkingDir, workingDir
- 
Method Details- 
setIgnoreExitValueSets whether a non-zero exit value is ignored, or an exception thrown.- Parameters:
- ignoreExitValue- whether a non-zero exit value is ignored, or an exception thrown
- Returns:
- this
 
- 
isIgnoreExitValueboolean isIgnoreExitValue()Tells whether a non-zero exit value is ignored, or an exception thrown. Defaults tofalse.- Returns:
- whether a non-zero exit value is ignored, or an exception thrown
 
- 
setStandardInputSets the standard input stream for the process executing the command. The stream is closed after the process completes.- Parameters:
- inputStream- The standard input stream for the process. Must not be null.
- Returns:
- this
 
- 
getStandardInputInputStream getStandardInput()Returns the standard input stream for the process executing the command. The stream is closed after the process completes. Defaults to an empty stream.- Returns:
- The standard input stream.
 
- 
setStandardOutputSets the output stream to consume standard output from the process executing the command. The stream is closed after the process completes.- Parameters:
- outputStream- The standard output stream for the process. Must not be null.
- Returns:
- this
 
- 
getStandardOutputOutputStream getStandardOutput()Returns the output stream to consume standard output from the process executing the command. Defaults toSystem.out.- Returns:
- The output stream
 
- 
setErrorOutputSets the output stream to consume standard error from the process executing the command. The stream is closed after the process completes.- Parameters:
- outputStream- The standard output error stream for the process. Must not be null.
- Returns:
- this
 
- 
getErrorOutputOutputStream getErrorOutput()Returns the output stream to consume standard error from the process executing the command. Default toSystem.err.- Returns:
- The error output stream.
 
- 
getCommandLineReturns the full command line, including the executable plus its arguments.- Returns:
- The full command line, including the executable plus its arguments
 
 
-