classjig::Builder
sys::Obj jig::Builder
Builder spawns fan <build.fan> compile, parses its output, and renders one line per pod with the same live status bar as Runner. The running pod stays pinned above the bar with its current build step to the right in dim text.
Build output is line based: a top level <target> [<pod>] line starts a pod, indented lines are progress steps, and any other top level line is an error or warning for the current pod, until BUILD SUCCESS or BUILD FAILED. Each row is tagged with its target; with several targets a group runs each target across all pods in turn, so each pod gets one row per target.
- findPod
static BuildPod? findPod(BuildScript script, Str name)Find BuildPod for
nameanywhere underscript, or null.- findRoot
static File? findRoot(Bool checked := true)Root build script:
./build.fan, else<workDir>/src/build.fan; if neither exists return null or throw ArgErr based onchecked.- load
static BuildScript load(File file)Compile and construct build script, as
build::Maindoes.- main
static Int main(Str[] args, Bool quiet, Bool clean, Bool full, Str? target := null)Entry point for
jig build; each arg is a pod under the root script or a build script path; with no args build the root script. Runscompileunless one of these picks the target:cleanonly cleans;fullcleans, compiles, and tests the built pods once all compile;targetruns that build target.- make
new make(File[] scripts, Str[] pods, Str[] targets := ["compile"], Bool quiet := false, Bool? tty := null, OutStream out := Env.cur().out(), File? cwd := null)Create builder to run
targetson each ofscripts, which together are expected to buildpods.- repoRoot
static File repoRoot(File dir)Root of the repo holding
dir: the nearest ancestor with a.gitdir or file, elsediritself.- run
Int run()Run build and return exit code.
- searchPod
static BuildPod? searchPod(File root, Str name)Search the
src/tree of reporootfor a pod namednameby its directory: a dir namednamewhosebuild.fanbuilds that pod. Returns null if none or there is nosrc/, and throws if more than one.