gradle
8.5

# exec

@Incubating
abstract fun exec(action: Action<out Any>): ExecOutput(source)

Allows lazy access to the output of the external process. When the process output is read at configuration time it is considered as an input to the configuration model. Consequent builds will re-execute the process to obtain the output and check if the cached model is still up-to-date. The process input and output streams cannot be configured.

#### Return

an interface that allows lazy access to the process' output.

#### Parameters

action

the configuration of the external process with the output stream pre-configured.