For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

exec

abstract fun exec(action: Action<in ExecSpec>): ExecResult(source)

Executes the specified external process. The given action is used to configure an ExecSpec, which is then used to run an external process.

Return

ExecResult that can be used to check if the execution worked

Since

6.0

Parameters

action

Action to configure the ExecSpec