public class TraceTaskBuilder
extends java.lang.Object
BaseTraceTask creation.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
baseName
Tha base name of the task without any prefixes.
|
protected java.lang.String |
description
The description for the task.
|
protected java.lang.String |
group
The group for the task.
|
protected org.gradle.api.tasks.TaskContainer |
taskContainer
The
TaskContainer that will contain the newly created task. |
protected java.lang.Class<? extends BaseTraceTask> |
type
The type of the task.
|
| Constructor and Description |
|---|
TraceTaskBuilder(org.gradle.api.tasks.TaskContainer taskContainer,
java.lang.String baseName,
java.lang.Class<? extends BaseTraceTask> type)
Constructor for the class.
|
| Modifier and Type | Method and Description |
|---|---|
BaseTraceTask |
build()
Builds the given task based on the values that are set and adds it to the
TaskContainer. |
protected java.util.Map<java.lang.String,java.lang.Object> |
generatePropertiesForTask(java.lang.String name,
java.lang.Class<? extends BaseTraceTask> type)
Creates the properties for a Gradle task.
|
TraceTaskBuilder |
setDescription(java.lang.String description)
Sets the description of the task.
|
TraceTaskBuilder |
setGroup(java.lang.String group)
Sets the group for the given task.
|
@NonNull protected final org.gradle.api.tasks.TaskContainer taskContainer
TaskContainer that will contain the newly created task.@NonNull protected final java.lang.String baseName
@NonNull protected final java.lang.Class<? extends BaseTraceTask> type
@Nullable protected java.lang.String group
@Nullable protected java.lang.String description
public TraceTaskBuilder(@NonNull
org.gradle.api.tasks.TaskContainer taskContainer,
@NonNull
java.lang.String baseName,
@NonNull
java.lang.Class<? extends BaseTraceTask> type)
taskContainer - the TaskContainer that will contain the created Task.baseName - the baseName of the newly created task.type - the class of the task.@NonNull public TraceTaskBuilder setGroup(@Nullable java.lang.String group)
group - the group of the given task.@NonNull public TraceTaskBuilder setDescription(@Nullable java.lang.String description)
description - the description of the task.@NonNull
protected java.util.Map<java.lang.String,java.lang.Object> generatePropertiesForTask(@NonNull
java.lang.String name,
@NonNull
java.lang.Class<? extends BaseTraceTask> type)
name - the name of the Task.type - the class of the Task.@NonNull public BaseTraceTask build()
TaskContainer.