Base class for an extension that can both be used on a project or a task.
Type | Name and description |
---|---|
ProjectOperations |
projectOperations ProjectOperations instance that the extension can use. |
Constructor and description |
---|
protected CombinedProjectTaskExtensionBase
(ProjectOperations projectOperations) Attach this extension to a project |
protected CombinedProjectTaskExtensionBase
(Task task, ProjectOperations projectOperations, 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 . |
|
protected Task |
getTask() Task this extension is attached to. |
ProjectOperations instance that the extension can use.
Attach this extension to a project
project
- Project to attach to.Attach 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
.
Task this extension is attached to. Will be null
if extension is attached to a project.
Groovy Documentation