RunToDelete class

A RunCondition that indicates that a Task will delete certain files and directories if they exist.

Build cleaning tasks should use this condition so that Dartle will know how to enforce the correct execution of tasks whose inputs/outputs may be affected by deletion tasks.

Mixed in types
Annotations
  • @sealed

Constructors

RunToDelete(FileCollection deletions, {bool verifyDeletions = true})

Properties

deletions FileCollection
Deletions which are expected to be performed after an action has run.
final
hashCode int
The hash code for this object.
no setterinherited
inputs FileCollection
Inputs which should be monitored for changes.
no setteroverride
outputs FileCollection
Outputs which should be monitored for changes.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verifyDeletions bool
Whether to verify that all declared deletions have been performed after the task has run.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postRun(TaskResult result) FutureOr<void>
Action to run after a task associated with this RunCondition has run, whether successfully or not.
override
shouldRun(TaskInvocation invocation) FutureOr<bool>
Check if the provided task invocation should run.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited