修飾子とタイプ | メソッドと説明 |
---|---|
void |
apply(Closure closure)
Configures this object using plugins or scripts.
|
void |
apply(Map<String,?> options)
Configures this Object using plugins or scripts.
|
PluginContainer |
getPlugins()
Returns the plugins container for this object.
|
PluginContainer getPlugins()
void apply(Closure closure)
Configures this object using plugins or scripts. The given closure is used to configure an ObjectConfigurationAction
which is then used to configure this object.
closure
- The closure to configure the ObjectConfigurationAction
.void apply(Map<String,?> options)
Configures this Object using plugins or scripts. The following options are available:
from
: A script to apply to the object. Accepts any path supported by Project.uri(Object)
.plugin
: The id or implementation class of the plugin to apply to the object.to
: The target delegate object or objects. Use this to configure objects other than this
object.For more detail, see ObjectConfigurationAction
.
options
- The options to use to configure the ObjectConfigurationAction
.