class

Task

abstract class Task : Obj

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.

constructors make

Construct with parent script

fields script

Return the parent build script associated with this task

methods log

Convenience for script.log

run

Run this task

fatal

Log an error and return a FatalBuildErr instance

fatal FatalBuildErr fatal(Str msg, Err? err)

Log an error and return a FatalBuildErr instance

log BuildLog log()

Convenience for script.log

make new make(BuildScript script)

Construct with parent script.

run 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.

script BuildScript : script

Return the parent build script associated with this task.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST