Package org.gradle.process
Schnittstelle BaseExecSpec
- Alle Superschnittstellen:
ProcessForkOptions
- Alle bekannten Unterschnittstellen:
ExecSpec,JavaExecSpec
- Alle bekannten Implementierungsklassen:
AbstractExecTask,Exec,JavaExec,RunTestExecutable
Specifies options for launching a child process.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns 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.Von Schnittstelle geerbte Methoden org.gradle.process.ProcessForkOptions
copyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setExecutable, setWorkingDir, setWorkingDir, workingDir
-
Methodendetails
-
setIgnoreExitValue
Sets whether a non-zero exit value is ignored, or an exception thrown.- Parameter:
ignoreExitValue- whether a non-zero exit value is ignored, or an exception thrown- Gibt zurück:
- this
-
isIgnoreExitValue
boolean isIgnoreExitValue()Tells whether a non-zero exit value is ignored, or an exception thrown. Defaults tofalse.- Gibt zurück:
- whether a non-zero exit value is ignored, or an exception thrown
-
setStandardInput
Sets the standard input stream for the process executing the command. The stream is closed after the process completes.- Parameter:
inputStream- The standard input stream for the process. Must not be null.- Gibt zurück:
- this
-
getStandardInput
InputStream 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.- Gibt zurück:
- The standard input stream.
-
setStandardOutput
Sets the output stream to consume standard output from the process executing the command. The stream is closed after the process completes.- Parameter:
outputStream- The standard output stream for the process. Must not be null.- Gibt zurück:
- this
-
getStandardOutput
OutputStream getStandardOutput()Returns the output stream to consume standard output from the process executing the command. Defaults toSystem.out.- Gibt zurück:
- The output stream
-
setErrorOutput
Sets the output stream to consume standard error from the process executing the command. The stream is closed after the process completes.- Parameter:
outputStream- The standard output error stream for the process. Must not be null.- Gibt zurück:
- this
-
getErrorOutput
OutputStream getErrorOutput()Returns the output stream to consume standard error from the process executing the command. Default toSystem.err.- Gibt zurück:
- The error output stream.
-
getCommandLine
Returns the full command line, including the executable plus its arguments.- Gibt zurück:
- The full command line, including the executable plus its arguments
-