type

BuildJava

src abstract class BuildJava : BuildScript

BuildJava is the base class for build scripts used to manage building Java source code into a Java jar file.

fields

cp

List of files to include in compiler classpath.

jar

Required target jar file to build

mainClass

Main class name to add to manifest if not null.

packages

Required list of dotted package names to compile.

methods

clean

Delete all intermediate and target files

compile

Compile Java source into jar

dumpEnv
full

Run clean, compile

Slot Details

clean

src @Target { help=... }
Void clean()

Delete all intermediate and target files

compile

src @Target { help="Compile Java source into jar" }
Void compile()

Compile Java source into jar

cp

src 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.

dumpEnv

src virtual override Void dumpEnv()

full

src @Target { help="Run clean, compile" }
Void full()

Run clean, compile

jar

src Uri? jar

Required target jar file to build

mainClass

src Str? mainClass

Main class name to add to manifest if not null.

packages

src 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.