class

TargetMethod

class TargetMethod : Obj

TargetMethod wraps a build target method which may be executed independently within a build script. Targets are the top level unit for organizing build scripts - each script publishes its available targets via BuildScript.targets.

constructors make

Construct a target to run under the specified build script

fields method

Method to invoke when this target is executed

script

Return the parent build script associated with this task

methods toStr

Return name

help

Summary description for usage help, derived from Target facet on method

name

Method of the target

run

Run this target by invoking the target's method

help virtual Str help()

Summary description for usage help, derived from Target facet on method.

make new make(BuildScript script, Method method)

Construct a target to run under the specified build script. The name is the key used to invoke this target from the command line. Description is used for usage summary. Func is invoked when this target is executed.

method Method : method

Method to invoke when this target is executed.

name virtual Str name()

Method of the target.

run virtual Void run()

Run this target by invoking the target's method. If the target fails to run then it should report errors via the log and throw FatalBuildErr.

script BuildScript : script

Return the parent build script associated with this task.

toStr virtual Str toStr()

Return name.

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