gradle
8.2

# exec

abstract fun exec(@DelegatesTo(value = ExecSpec::class) closure: Closure): ExecResult

Executes an external command. The closure configures a org.gradle.process.ExecSpec.

#### Return

the result of the execution

#### Parameters

closure

The closure for configuring the execution.

abstract fun exec(action: Action<out Any>): ExecResult

Executes an external command.

#### Return

the result of the execution

#### Parameters

action

The action for configuring the execution.