file: javatools.aus

class: duplicateStrategy

[46:6] static extends: object

Enum defines how a jar build handles an entry that appears in more than one input. first keeps the first seen, last the last, and error fails the build on a conflict.

Members

class: docVisibility

[68:6] static extends: object

Enum defines the Javadoc visibility levels. protectedApi is Javadoc's own default (public and protected members); publicApi narrows to public only, and packageApi / privateApi widen to include more.

Members

class: JavaJar

[330:7] extends: object

JavaJar carries the full set of packaging inputs for JavaTools.jar. The simple jar call covers a library jar and an executable jar. The thin, uber, and shaded kinds add enough options - bundled jars, duplicate handling, relocation, manifest headers, filters - that a flat argument list would be unwieldy, so they live here.

Members

Methods

class: packageType

[81:6] static extends: object

Enum defines the jpackage output kinds. Each member maps to jpackage's own --type value; only appImage differs from the tool's spelling (app-image). appImage produces a native app image directory; the rest produce platform installers and need that platform's tooling.

Members

class: JavaPackage

[817:7] extends: object

JavaPackage carries the full set of inputs for JavaTools.jpackage. jpackage turns an application plus a runtime into a native app image or a platform installer. The simple jpackage call covers the common case (type, name, input directory, main jar and class); this options object adds the metadata, runtime, and platform controls.

Members

Methods

class: procMode

[23:6] static extends: object

Enum defines the annotation processing modes for a compile. full compiles and processes, only processes without compiling, and none compiles with no processing.

Members

class: jdkSource

[10:6] static extends: object

Enum defines where a discovered JDK was found. Each member evaluates to its own name as a string, so it can be compared directly against the source field of a detectJdks entry.

Members

class: JavaDoc

[513:7] extends: object

JavaDoc carries the full set of documentation inputs for JavaTools.javadoc, for callers who need more than the inline form's sources, output directory, and classpath.

Members

Methods

class: JavaTools

[1125:14] (extern: com.lehman.aussom.stdlib.AussomJavaTools) extends: object

JavaTools lets Aussom code compile Java source, package class files into a jar of any kind, generate Javadoc, and resolve Maven dependencies. It is an instantiable object rather than a static class because a caller usually sets configuration once - which JDK, which Maven repositories, where the local repository lives - and then runs several operations against it. By default it uses the system JDK - the one the developer's own shell compiles with (JAVA_HOME, else javac on the PATH) - so a build script uses the JDK the user expects rather than Aussom's bundled runtime. It falls back to the JDK that ships with Aussom when no system JDK is found. A system or specific JDK runs that JDK's tools as a subprocess, while the shipped JDK compiles in-process (with structured diagnostics), because the in-process compiler is always the running JVM's own.

Methods

class: resolveScope

[57:6] static extends: object

Enum defines which transitive dependencies a resolve includes. compile is the set needed to compile against the artifact and runtime is the set needed to run it.

Members

class: linkCompress

[96:6] static extends: object

Enum defines the jlink compression level, mapping each member to jlink's --compress value: zip0 is no compression through zip9 for the best compression. jlink's own default is zip6 when unset.

Members

class: JavaLink

[671:7] extends: object

JavaLink carries the full set of inputs for JavaTools.jlink. jlink builds a minimal Java runtime holding only the modules an application needs. The simple jlink call covers the common case (root modules and an output directory); this options object adds the size and launcher controls.

Members

Methods

class: diagnosticKind

[33:6] static extends: object

Enum defines the compiler diagnostic kinds. The values match the Java compiler's own Diagnostic.Kind names.

Members

class: JavaCompile

[120:7] extends: object

JavaCompile carries the full set of compilation inputs for JavaTools.compile. Aussom arguments are positional, so compile takes only the everyday knobs directly. The longer tail of javac inputs - annotation processing, modular builds, encoding, extra flags, a per-call JDK override - would make an unwieldy argument list, so they live here. Every setter is typed and optional; an unset one keeps the same default as the inline form.

Members

Methods