public static class GradleTask.Builder extends Object
GradleTask.| Modifier | Constructor and Description |
|---|---|
protected |
Builder(String name) |
protected |
Builder(String name,
String type) |
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(String target,
String value)
Add a task attribute.
|
GradleTask |
build()
Build a
GradleTask with the current state of this builder. |
void |
invoke(String target,
String... arguments)
Invoke a task method.
|
void |
nested(String property,
Consumer<GradleTask.Builder> customizer)
Customize a nested task for the specified property.
|
protected Builder(String name)
public void attribute(String target, String value)
target - the name of the attributevalue - the valuepublic void invoke(String target, String... arguments)
target - the name of the methodarguments - the argumentspublic void nested(String property, Consumer<GradleTask.Builder> customizer)
property - a task propertycustomizer - a Consumer to customize the nested taskpublic GradleTask build()
GradleTask with the current state of this builder.GradleTaskCopyright © 2019 Pivotal Software, Inc.. All rights reserved.