saker.build Documentation TaskDoc JavaDoc Packages
public class CommonTaskOutputChangeDetector
Fields
public static final TaskOutputChangeDetector
Treats the task output as always changed.
public static final TaskOutputChangeDetector
Expects the given task output to be an array.
public static final TaskOutputChangeDetector
Expects the given task output to be not an array.
public static final TaskOutputChangeDetector
Expects the task output to be null.
public static final TaskOutputChangeDetector
Treats the task output as never changed.
Methods
public static TaskOutputChangeDetector
Gets a task output change detector that expects the task output to equal to the argument.
public static TaskOutputChangeDetector
instanceOf(Class<?> type, boolean expectedinstanceof)
Gets a task output change detector that examines if the task output is instance of the given type.
public static TaskOutputChangeDetector
Gets a task output change detector that expects the task output to be an instance of the given type.
public static TaskOutputChangeDetector
Gets a task output change detector that expects the task to have a given type.
public static TaskOutputChangeDetector
Gets a task output change detector that expects the task output to be not an instance of the given type.
public static final TaskOutputChangeDetector ALWAYS
Treats the task output as always changed.

This is the default TaskOutputChangeDetector for task dependencies. When a task reports this as the output change detector, it will trigger a task change delta if the input task was rerun, and it themself detects that it has changed.

Expects the given task output to be an array.

If the task output is null, a change is detected.

Expects the given task output to be not an array.

If the task output is null, a change is not detected.

public static final TaskOutputChangeDetector IS_NULL
Expects the task output to be null.
saker.build 0.8.12
public static final TaskOutputChangeDetector NEVER
Treats the task output as never changed.
Gets a task output change detector that expects the task output to equal to the argument.
objThe object to check the equality for. May be null.
The output change detector.
public static TaskOutputChangeDetector instanceOf(Class<?> type, boolean expectedinstanceof) throws NullPointerException
Gets a task output change detector that examines if the task output is instance of the given type.

A change is detected if the task output is instance of the given type and it is not expected, or if it is not an instance of the type and it is expected.

typeThe type to check if the task output is instance of.
expectedinstanceofWhether or not to expect the task output to be an instance of the specified type.
The output change detector.
NullPointerExceptionIf the argument is null.
Gets a task output change detector that expects the task output to be an instance of the given type.
typeThe type to check if the task output is instance of.
The output change detector.
NullPointerExceptionIf the argument is null.
Gets a task output change detector that expects the task to have a given type.
typeThe type to check if the output for.
The output change detector.
NullPointerExceptionIf the argument is null.
Gets a task output change detector that expects the task output to be not an instance of the given type.
typeThe type to check if the task output is instance of.
The output change detector.
NullPointerExceptionIf the argument is null.