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.

ExecOperations

@ServiceScope(value = [Build::class, Project::class])
interface ExecOperations(source)

Process execution operations.

An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or property getter method with javax.inject.Inject.

Since

6.0

Functions

Link copied to clipboard
abstract fun exec(action: Action<in ExecSpec>): ExecResult
Executes the specified external process.
Link copied to clipboard
abstract fun javaexec(action: Action<in JavaExecSpec>): ExecResult
Executes the specified external java process.