class build::TargetMethod

sys::Obj
  build::TargetMethod

Source

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.

help

virtual Str help()

Source

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

make

new make(BuildScript script, Method method)

Source

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 { private set }

Source

Method to invoke when this target is executed.

name

virtual Str name()

Source

Method of the target.

run

virtual Void run()

Source

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 { private set }

Source

Return the parent build script associated with this task.

toStr

virtual override Str toStr()

Source

Return name.