api / org.gradle.api / Script / javaexec

javaexec

abstract fun javaexec(closure: Closure<Any>): ExecResult

Executes a Java main class. The closure configures a org.gradle.process.JavaExecSpec.

Parameters

closure - The closure for configuring the execution.

Return
the result of the execution

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

Executes a Java main class.

Parameters

action - The action for configuring the execution.

Return
the result of the execution