abstract fun javaexec(closure: Closure<Any>): ExecResult
Executes a Java main class. The closure configures a org.gradle.process.JavaExecSpec.
closure
- The closure for configuring the execution.
Return
the result of the execution
abstract fun javaexec(action: Action<in JavaExecSpec>): ExecResult
Executes an external Java process.
The given action configures a org.gradle.process.JavaExecSpec, which is used to launch the process. This method blocks until the process terminates, with its result being returned.
action
- The action for configuring the execution.
Return
the result of the execution