gradle
8.6

# ExecSpec

interface ExecSpec : BaseExecSpec(source)

Specified the options for executing some command.

#### Inheritors

AbstractExecTask

## Functions

args
Link copied to clipboard
abstract fun args(args: Iterable<out Any>): ExecSpec
abstract fun args(args: Array<Any>): ExecSpec
Adds arguments for the command to be executed.
commandLine
Link copied to clipboard
abstract fun commandLine(args: Iterable<out Any>): ExecSpec
abstract fun commandLine(args: Array<Any>): ExecSpec
Sets the full command line, including the executable to be executed plus its arguments.
copyTo
Link copied to clipboard
abstract fun copyTo(p: ProcessForkOptions): ProcessForkOptions
environment
Link copied to clipboard
abstract fun environment(p: 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(p: Any): ProcessForkOptions
getArgs
Link copied to clipboard
abstract fun getArgs(): List<String>
Returns the arguments for the command to be executed.
getArgumentProviders
Link copied to clipboard
abstract fun getArgumentProviders(): List<CommandLineArgumentProvider>
Argument providers for the application.
getCommandLine
Link copied to clipboard
abstract fun getCommandLine(): List<String>
getEnvironment
Link copied to clipboard
abstract fun getEnvironment(): Map<String, Any>
getErrorOutput
Link copied to clipboard
abstract fun getErrorOutput(): OutputStream
getExecutable
Link copied to clipboard
abstract fun getExecutable(): String
getStandardInput
Link copied to clipboard
abstract fun getStandardInput(): InputStream
getStandardOutput
Link copied to clipboard
abstract fun getStandardOutput(): OutputStream
getWorkingDir
Link copied to clipboard
abstract fun getWorkingDir(): File
isIgnoreExitValue
Link copied to clipboard
abstract fun isIgnoreExitValue(): Boolean
setArgs
Link copied to clipboard
abstract fun setArgs(args: Iterable<out Any>): ExecSpec
abstract fun setArgs(args: List<String>): ExecSpec
Sets the arguments for the command to be executed.
setCommandLine
Link copied to clipboard
abstract fun setCommandLine(args: Iterable<out Any>)
abstract fun setCommandLine(args: Array<Any>)
abstract fun setCommandLine(args: List<String>)
Sets the full command line, including the executable to be executed plus its arguments.
setEnvironment
Link copied to clipboard
abstract fun setEnvironment(p: 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(p: OutputStream): BaseExecSpec
setExecutable
Link copied to clipboard
abstract fun setExecutable(p: String)
setIgnoreExitValue
Link copied to clipboard
abstract fun setIgnoreExitValue(p: Boolean): BaseExecSpec
setStandardInput
Link copied to clipboard
abstract fun setStandardInput(p: InputStream): BaseExecSpec
setStandardOutput
Link copied to clipboard
abstract fun setStandardOutput(p: OutputStream): BaseExecSpec
setWorkingDir
Link copied to clipboard
abstract fun setWorkingDir(p: File)
workingDir
Link copied to clipboard
abstract fun workingDir(p: Any): ProcessForkOptions