Search in sources :

Example 1 with DefaultObjectConfigurationAction

use of org.gradle.api.internal.plugins.DefaultObjectConfigurationAction in project gradle by gradle.

the class DefaultScript method apply.

@Override
public void apply(Map options) {
    DefaultObjectConfigurationAction action = createObjectConfigurationAction();
    ConfigureUtil.configureByMap(options, action);
    action.execute();
}
Also used : DefaultObjectConfigurationAction(org.gradle.api.internal.plugins.DefaultObjectConfigurationAction)

Example 2 with DefaultObjectConfigurationAction

use of org.gradle.api.internal.plugins.DefaultObjectConfigurationAction in project gradle by gradle.

the class DefaultScript method apply.

@Override
public void apply(Closure closure) {
    DefaultObjectConfigurationAction action = createObjectConfigurationAction();
    ConfigureUtil.configure(closure, action);
    action.execute();
}
Also used : DefaultObjectConfigurationAction(org.gradle.api.internal.plugins.DefaultObjectConfigurationAction)

Example 3 with DefaultObjectConfigurationAction

use of org.gradle.api.internal.plugins.DefaultObjectConfigurationAction in project gradle by gradle.

the class AbstractPluginAware method apply.

public void apply(Map<String, ?> options) {
    DefaultObjectConfigurationAction action = createObjectConfigurationAction();
    ConfigureUtil.configureByMap(options, action);
    action.execute();
}
Also used : DefaultObjectConfigurationAction(org.gradle.api.internal.plugins.DefaultObjectConfigurationAction)

Example 4 with DefaultObjectConfigurationAction

use of org.gradle.api.internal.plugins.DefaultObjectConfigurationAction in project gradle by gradle.

the class AbstractPluginAware method apply.

public void apply(Action<? super ObjectConfigurationAction> action) {
    DefaultObjectConfigurationAction configAction = createObjectConfigurationAction();
    action.execute(configAction);
    configAction.execute();
}
Also used : DefaultObjectConfigurationAction(org.gradle.api.internal.plugins.DefaultObjectConfigurationAction)

Aggregations

DefaultObjectConfigurationAction (org.gradle.api.internal.plugins.DefaultObjectConfigurationAction)4