Constructor and Description |
---|
TaskActionUtils() |
Modifier and Type | Method and Description |
---|---|
static Action<Task> |
assertTrue(Supplier<Boolean> expression,
Object errorMessage)
Assert the supplied expression is true as a Task action.
|
static Action<Task> |
deleteDirectories(Iterable<Object> directories)
Returns an action that will delete the specified directories.
|
static Action<Task> |
deleteDirectories(Object... directories)
Returns an action that will delete the specified directories.
|
public static Action<Task> deleteDirectories(Object... directories)
File
, Path
, Directory
or any deferred types of previous types.directories
- the directories to delete when executing the action.DeferredUtils
public static Action<Task> deleteDirectories(Iterable<Object> directories)
File
, Path
, Directory
or any deferred types of previous types.directories
- the directories to delete when executing the action.DeferredUtils
public static Action<Task> assertTrue(Supplier<Boolean> expression, Object errorMessage)
expression
- expression to assert trueerrorMessage
- error message to include in the exceptionIllegalArgumentException
.IllegalArgumentException
- if the expression is false
.