# BaseExecSpec

interface BaseExecSpec : ProcessForkOptions(source)

Specifies options for launching a child process.

#### Inheritors

ExecSpec
JavaExecSpec

## Functions

copyTo
Link copied to clipboard
abstract fun copyTo(options: ProcessForkOptions): ProcessForkOptions
environment
Link copied to clipboard
abstract fun environment(environmentVariables: Map<String, out Any>): ProcessForkOptions
environment
Link copied to clipboard
inline fun ProcessForkOptions.environment(vararg environmentVariables: Pair<String, Any?>): ProcessForkOptions

Kotlin extension function for org.gradle.process.ProcessForkOptions.environment.

executable
Link copied to clipboard
abstract fun executable(executable: Any): ProcessForkOptions
getCommandLine
Link copied to clipboard
abstract fun getCommandLine(): List<String>
Returns the full command line, including the executable plus its arguments.
getEnvironment
Link copied to clipboard
abstract fun getEnvironment(): Map<String, Any>
getErrorOutput
Link copied to clipboard
abstract fun getErrorOutput(): OutputStream
Returns the output stream to consume standard error from the process executing the command.
getExecutable
Link copied to clipboard
abstract fun getExecutable(): String
getStandardInput
Link copied to clipboard
abstract fun getStandardInput(): InputStream
Returns the standard input stream for the process executing the command.
getStandardOutput
Link copied to clipboard
abstract fun getStandardOutput(): OutputStream
Returns the output stream to consume standard output from the process executing the command.
getWorkingDir
Link copied to clipboard
abstract fun getWorkingDir(): File
isIgnoreExitValue
Link copied to clipboard
abstract fun isIgnoreExitValue(): Boolean
Tells whether a non-zero exit value is ignored, or an exception thrown.
setEnvironment
Link copied to clipboard
abstract fun setEnvironment(environmentVariables: Map<String, out Any>)
setEnvironment
Link copied to clipboard
inline fun ProcessForkOptions.setEnvironment(vararg environmentVariables: Pair<String, Any?>)

Kotlin extension function for org.gradle.process.ProcessForkOptions.setEnvironment.

setErrorOutput
Link copied to clipboard
abstract fun setErrorOutput(outputStream: OutputStream): BaseExecSpec
Sets the output stream to consume standard error from the process executing the command.
setExecutable
Link copied to clipboard
abstract fun setExecutable(executable: String)
setIgnoreExitValue
Link copied to clipboard
abstract fun setIgnoreExitValue(ignoreExitValue: Boolean): BaseExecSpec
Sets whether a non-zero exit value is ignored, or an exception thrown.
setStandardInput
Link copied to clipboard
abstract fun setStandardInput(inputStream: InputStream): BaseExecSpec
Sets the standard input stream for the process executing the command.
setStandardOutput
Link copied to clipboard
abstract fun setStandardOutput(outputStream: OutputStream): BaseExecSpec
Sets the output stream to consume standard output from the process executing the command.
setWorkingDir
Link copied to clipboard
abstract fun setWorkingDir(dir: File)
workingDir
Link copied to clipboard
abstract fun workingDir(dir: Any): ProcessForkOptions