Fan

 

abstract class

build::Task

sys::Obj
  build::Task

Task is the base class for commands to run in build scripts. The library of Task subclasses represent the reusable units of work which are composed together to implement build script Targets.

Slots

fatalSource

FatalBuildErr fatal(Str msg, Err? err := null)

Log an error and return a FatalBuildErr instance

logSource

BuildLog log()

Convenience for script.log

makeSource

new make(BuildScript script)

Construct with parent script.

runSource

abstract Void run()

Run this task. If there is an error, the report them via the script's log and throw FatalBuildErr if the script should be terminated.

scriptSource

readonly BuildScript script

Return the parent build script associated with this task.