public class TraceVariantTaskBuilder extends TraceTaskBuilder
BaseTraceVariantTask creation.baseName, description, group, taskContainer| Constructor and Description |
|---|
TraceVariantTaskBuilder(org.gradle.api.tasks.TaskContainer taskContainer,
java.lang.String baseName,
java.lang.Class<? extends BaseTraceVariantTask> type,
com.android.build.gradle.api.BaseVariant variant)
Constructor for the class.
|
| Modifier and Type | Method and Description |
|---|---|
BaseTraceVariantTask |
build()
Builds the given task based on the values that are set and adds it to the
TaskContainer. |
TraceVariantTaskBuilder |
setVariantOutput(com.android.build.gradle.api.BaseVariantOutput variantOutput)
Sets the
BaseVariantOutput for the given task. |
generatePropertiesForTask, setDescription, setGrouppublic TraceVariantTaskBuilder(@NonNull
org.gradle.api.tasks.TaskContainer taskContainer,
@NonNull
java.lang.String baseName,
@NonNull
java.lang.Class<? extends BaseTraceVariantTask> type,
@NonNull
com.android.build.gradle.api.BaseVariant variant)
taskContainer - the TaskContainer that will contain the created Task.baseName - the baseName of the newly created task.type - the class of the task.variant - the BaseVariant for the task.@NonNull public TraceVariantTaskBuilder setVariantOutput(@Nullable com.android.build.gradle.api.BaseVariantOutput variantOutput)
BaseVariantOutput for the given task.variantOutput - the variant output.@NonNull public BaseTraceVariantTask build()
TraceTaskBuilderTaskContainer.build in class TraceTaskBuilder