Utilities for dealing with tasks.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static Provider<Task> |
taskProviderFrom(Project project, Object o)Creates a basic task Provider instance from an object. |
|
static java.util.List<Task> |
taskize(Project project, Iterable<Object> taskyThings)Resolves a list of items to a list of tasks. |
|
static Task |
taskize(Project project, Object t)Resolves a single item to an existing task instance. |
Creates a basic task Provider instance from an object.
project - Project context.o - Object to be evaluated to a task.Resolves a list of items to a list of tasks. List items can be any of the types supported by taskize(Project project, Object o), but in addition the following are supported:
Provider, Callable or Closure returns an iterable sequence.
project - Project contexttaskyThings - Iterable sequence of items to be resolved.Resolves a single item to an existing task instance. The following types are supported:
CharSequenceCallable that returns one of the above typesproject - Project contextt - Object to resolve to task