@groovy.transform.CompileStatic @groovy.util.logging.Slf4j class CombinedProjectTaskExtensionBase<T extends CombinedProjectTaskExtensionBase> extends Object
Base class for an extension that can both be used on a project or a task.
| Modifiers | Name | Description |
|---|---|---|
protected ConfigCacheSafeOperations |
ccso |
| Constructor and description |
|---|
protected CombinedProjectTaskExtensionBase
(ProjectOperations projectOperations)Attach this extension to a project |
protected CombinedProjectTaskExtensionBase
(Project tempProjectRef)Attach this extension to a project |
protected CombinedProjectTaskExtensionBase
(Task task, ProjectOperations projectOperations, T projectExtension)Attach this extension to a task |
protected CombinedProjectTaskExtensionBase
(Task task, T projectExtension)Attach this extension to a task |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected T |
getProjectExtension()If this extension is attached to a task, this point to the global project extension if it exists, other null. |
|
ProjectOperations |
getProjectOperations()ProjectOperations instance that the extension can use. |
|
protected Task |
getTask()Task this extension is attached to. |
Attach this extension to a project
project - Project to attach to.Attach this extension to a project
project - Project to attach to.Attach this extension to a task
task - Task to attach toAttach this extension to a task
task - Task to attach to If this extension is attached to a task, this point to the global project extension if it exists,
other null.
ProjectOperations instance that the extension can use.
Task this extension is attached to. Will be null if extension is attached to a project.