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.

javaexec

abstract fun javaexec(action: Action<in JavaExecSpec>): ExecResult(source)

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

Return

ExecResult that can be used to check if the execution worked

Since

6.0

Parameters

action

Action to configure the JavaExecSpec