file: javabuild.aus

class: BuildLog

[856:7] extends: object

BuildLog reports build progress to the terminal. When standard output is an interactive terminal it shows a colored, in-place status line for the running task and a colored result line as each task finishes. When output is piped to a file or another process it falls back to plain one-line-per-task logging, so logs stay readable in files and CI with no escape bytes mixed in. The mode is chosen automatically from the terminal but can be forced to "tui" or "plain". The terminal styling is written with raw ANSI escape sequences. The escape byte is the \u001b Unicode escape, held in escValue.

Members

Methods

class: BuildTask

[53:7] extends: object

BuildTask is the base class for every build step. A subclass overrides run() to do its work and, to take part in incremental builds, overrides inputs() and outputs() to declare the files it reads and writes. The runner calls execute(), never run() directly, so the up-to-date check always runs first. Aussom has no super call, so the base cannot be a method the subclass wraps. Instead execute() is a template method the runner calls, and it calls this.run() - the override point the subclass fills in. Aussom dispatches this.run() to the subclass's version.

Members

Methods

class: BuildRunner

[1053:7] extends: CliParser

BuildRunner reads command-line options and runs build tasks. It is a CliParser, so it parses arguments and prints help, and it holds tasks it runs for the selected actions. Construct it with command-line arguments plus a source path for the easy path, or with no arguments to add tasks by hand. Flag order never matters: the flags select a set of steps run in one canonical order, and clean always runs first.

Members

Methods

class: InstallTask

[716:7] extends: BuildTask

InstallTask installs the built jar and its companion artifacts into the local Maven repository. It renders a POM from the project coordinates and dependency list with the handlebars module, packages a sources jar from the source tree and a javadoc jar from the generated docs, and installs the set through JavaTools.install. It is not incremental: it installs every time it runs, so re-installing the same version needs no version bump and no manual delete from the local repository. It needs coordinates - setCoordinates on the runner - and fails with a clear message when they are missing.

Members

Methods

class: JavadocTask

[420:7] extends: BuildTask

JavadocTask generates documentation through JavaTools.javadoc. Its inputs are the source files and its output is the docs directory.

Members

Methods

class: JlinkTask

[580:7] extends: BuildTask

JlinkTask builds a custom runtime image through JavaTools.jlink. Its inputs are the module-path jars it consumes and its output is the image directory. jlink requires the output directory not to exist, so the task removes a stale one before running.

Members

Methods

class: taskStatus

[19:6] static extends: object

Enum defines a build task's lifecycle status. pending before it runs, skipped when the incremental check found it up to date, done on a successful run, and failed otherwise.

Members

class: ResolveTask

[490:7] extends: BuildTask

ResolveTask resolves Maven dependencies through JavaTools.resolve. It has no local inputs to track, so it runs every time; resolution is cache-backed by the local Maven repository, so re-running is cheap. In the easy path it also wires the resolved classpath into the compile spec (and, for an executable jar, the jar's bundle), so a later compile sees the dependency classpath.

Members

Methods

class: JavaCompileTask

[289:7] extends: BuildTask

JavaCompileTask compiles Java source through JavaTools.compile. Its inputs are the .java files under the spec's sources and its output is the class directory, so it skips when no source is newer than the compiled classes.

Members

Methods

class: JavaJarTask

[365:7] extends: BuildTask

JavaJarTask packages class files through JavaTools.jar. Its inputs are the class trees it packages plus any bundled jars, and its output is the jar path.

Members

Methods

class: JpackageTask

[638:7] extends: BuildTask

JpackageTask builds a native app image or installer through JavaTools.jpackage. Its inputs are the application jars (and any custom runtime image) it consumes; its output is the destination directory. It removes a stale app image before running, since jpackage refuses to overwrite one.

Members

Methods

class: buildAction

[31:6] static extends: object

Enum defines the build actions a BuildRunner can run. clean removes outputs; the rest name a slice of the standard pipeline. Each member is its own name as a string, as in the javatools enums.

Members