api / org.gradle.process / JavaExecSpec / setMain

setMain

abstract fun setMain(main: String): JavaExecSpec

Sets the fully qualified name of the main class to be executed.

Parameters

main - the fully qualified name of the main class to be executed.

Return
this