api / org.gradle.api / ActionConfiguration

ActionConfiguration

@Incubating interface ActionConfiguration

Allows specification of configuration for some action.

The configuration is represented using zero or more initialization parameters to use when constructing an instance of the implementation class. The following types are supported:

Since
4.0

Functions

getParams

abstract fun getParams(): Array<Any>

Gets the initialization parameters that will be used when constructing an instance of the implementation class.

params

abstract fun params(vararg params: Any): Unit

Adds initialization parameters to use when constructing an instance of the implementation class.

setParams

abstract fun setParams(vararg params: Any): Unit

Sets any initialization parameters to use when constructing an instance of the implementation class.

Inheritors

WorkerConfiguration

interface WorkerConfiguration : Describable, ActionConfiguration

Represents the configuration of a worker. Used when submitting an item of work to the WorkerExecutor.

 workerExecutor.submit(RunnableWorkImpl.class) { WorkerConfiguration conf -> conf.isolationMode = IsolationMode.PROCESS forkOptions { JavaForkOptions options -> options.maxHeapSize = "512m" options.systemProperty 'some.prop', 'value' options.jvmArgs "-server" } classpath configurations.fooLibrary conf.params = [ "foo", file('bar') ] }