public class GradleTaskContainer extends Object
| Constructor and Description |
|---|
GradleTaskContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
customize(String name,
Consumer<GradleTask.Builder> task)
Customize a task with the specified name.
|
void |
customizeWithType(String type,
Consumer<GradleTask.Builder> task)
Customize a task matching a given type.
|
GradleTask |
get(String task)
Get a
GradleTask with the specified task name. |
boolean |
has(String name)
Specify if this container has a task customization with the specified
name. |
Stream<String> |
importedTypes()
Return the fully qualified name of types to import.
|
boolean |
isEmpty()
Specify if this container is empty.
|
boolean |
remove(String name)
Remove the task with the specified
name. |
Stream<GradleTask> |
values()
Return the
Gradle tasks to customize. |
public boolean isEmpty()
true if no task is registeredpublic boolean has(String name)
name.name - the name of a tasktrue if a customization for a task with the specified name
existspublic Stream<GradleTask> values()
Gradle tasks to customize.public GradleTask get(String task)
GradleTask with the specified task name.task - the name or typenullpublic Stream<String> importedTypes()
public void customize(String name, Consumer<GradleTask.Builder> task)
name - the name of a tasktask - a callback to customize the taskpublic void customizeWithType(String type, Consumer<GradleTask.Builder> task)
type - the name of type. Can use the short form for well-known types such as
JavaCompile, use a fully qualified name if an import is requiredtask - a callback to customize the taskpublic boolean remove(String name)
name.name - the name of the tasktrue if such a task was registered, false otherwiseCopyright © 2019 Pivotal Software, Inc.. All rights reserved.