javaexec

abstract fun javaexec(@DelegatesTo(value = JavaExecSpec::class) closure: Closure): ExecResult(source)

Deprecated

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

Return

the result of the execution

Deprecated

Since 8.11. This method will be removed in Gradle 9.0. Use javaexec or javaexec instead.

Parameters

closure

The closure for configuring the execution.


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

Deprecated

Executes a Java main class.

Return

the result of the execution

Deprecated

Since 8.11. This method will be removed in Gradle 9.0. Use javaexec or javaexec instead.

Parameters

action

The action for configuring the execution.