# setArgs

abstract fun setArgs(args: List<String>): JavaExecSpec(source)

Sets the args for the main class to be executed.

#### Return

this

#### Since

4.0

#### Parameters

args

Args for the main class.

abstract fun setArgs(args: Iterable<out Any>): JavaExecSpec(source)

Sets the args for the main class to be executed.

#### Return

this

#### Since

0.9

#### Parameters

args

Args for the main class.