- Index
- »
- build
- »
- TargetMethod
type
TargetMethod
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
help |
Summary description for usage help, derived from |
---|---|
name |
Method of the target. |
run |
Run this target by invoking the target's method. |
toStr |
Return name. |
Slot Details
help
make
src
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
name
run
script
src
BuildScript script { private set }
Return the parent build script associated with this task.