BuildGroup is the base class for build scripts which compose a set of children build scripts into a single group. The target's of a BuildGroup are the union of the target names available in the children scripts.
Slots
- childrenSource
-
BuildScript[]? children
Compiled children scripts
- childrenScriptsSource
-
Uri[] childrenScripts := Uri[,]
Required list of Uris relative to this scriptDir of Fantom build script files to group together.
- defaultTargetSource
-
override Target defaultTarget()
Overrides build::BuildScript.defaultTarget
Assume the default target is "compile".
- dumpEnvSource
-
@target = "Dump env details to help build debugging"
override Void dumpEnv()Overrides build::BuildScript.dumpEnv
- makeTargetsSource
-
override Target[] makeTargets()
Overrides build::BuildScript.makeTargets
BuildGroup publishes the union by name of it's children script targets.
- runOnChildrenSource
-
virtual Void runOnChildren(Str targetName)
Run the specified target name on each of the children scripts that support the specified name.
- spawnOnChildrenSource
-
virtual Void spawnOnChildren(Str targetName)
Run the specified target name on each of the children scripts that support the specified name. Unlike runOnChildren this method actually spawns a new process to run the child script.
-
private Target toTarget(Str name, Target[] myTargets)
Make a target which will run the specified target name on all my children scripts.
-
override internal Void validate()
Overrides build::BuildScript.validate
Validate subclass constructor setup required meta-data.