@groovy.transform.CompileStatic abstract class TaskToolsProxy extends Object
Non-Gradle API-specific common code from org.ysb33r.grolifant.api.core.TaskTools.
| Modifiers | Name | Description |
|---|---|---|
protected org.ysb33r.grolifant.api.core.ProjectOperations |
projectOperations |
|
protected ProviderFactory |
providerFactory |
|
protected TaskContainer |
tasks |
| Constructor and description |
|---|
protected TaskToolsProxy
(org.ysb33r.grolifant.api.core.ProjectOperations incompleteReference, Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
ignoreEmptyDirectories(TaskInputs inputs, Object files)This is similar to putting both a SkipWhenEmpty and a org.gradle.api.tasks.IgnoreEmptyDirectories annotation on a property, but it deals with both
backwards and forward compatibility around Gradle 6.8. |
|
protected boolean |
isTaskProvider(Object o)Whether this is a {@code TaskProvider |
|
protected void |
markIgnoreEmptyDirectories(TaskInputFilePropertyBuilder inputsBuilder)Marks an input property to ignore empty directories. |
|
Provider<? extends Task> |
taskProviderFrom(TaskContainer tasks1, ProviderFactory pf, Object o)Creates a basic task Provider instance from an object. |
|
Provider<? extends Task> |
taskProviderFrom(Object o)Creates a basic task Provider instance from an object. |
|
Provider<java.util.List<? extends Task>> |
taskize(Object... taskies)Resolves a list of many objects to tasks items to a provider of tasks. |
|
Provider<java.util.List<? extends Task>> |
taskize(Iterable<Object> taskies)Resolves a list of many objects to tasks items to a provider of tasks. |
This is similar to putting both a SkipWhenEmpty and a
org.gradle.api.tasks.IgnoreEmptyDirectories annotation on a property, but it deals with both
backwards and forward compatibility around Gradle 6.8.
Accepts any of the following
inputs - Inputs for a specific taskfiles - File collections Whether this is a TaskProvider<?>.
o - Object to evaluatetrue is an instance of TaskProvider.Marks an input property to ignore empty directories.
inputsBuilder - Property builder to updateCreates a basic task Provider instance from an object.
tasks - Override the task containerto use.pf - Override the provider factory to use.o - Object to be evaluated to a task.Creates a basic task Provider instance from an object.
o - Object to be evaluated to a task.Resolves a list of many objects to tasks items to a provider of tasks.
taskies - Things that can be converted to Task or TaskProvider