BuildJava is the base class for build scripts used to manage building Java source code into a Java jar file.
Slots
- cleanSource
-
Delete all intermediate and target files
- compileSource
-
Compile Java source into jar
- cpSource
-
Uri[]? cp
List of files to include in compiler classpath. The core Java rt.jar is always implied and should not be specified. These URIs are relative to the script dir.
- dumpEnvSource
-
override Void dumpEnv()
Overrides build::BuildScript.dumpEnv
Doc inherited from build::BuildScript.dumpEnv
Dump script environment for debug.
- fullSource
-
Run clean, compile
- jarSource
-
Uri? jar
Required target jar file to build
- mainClassSource
-
Str? mainClass
Main class name to add to manifest if not null.
- packagesSource
-
Str[]? packages
Required list of dotted package names to compile. Each of these packages must have a corresponding source directory relative to the script directory.
-
private Void validate()