setArgs

open fun setArgs(applicationArgs: List<String>): JavaExec
open fun setArgs(applicationArgs: Iterable<out Any>): JavaExec

Sets the args for the main class to be executed.