Fantom

 

abstract class

build::BuildJava

sys::Obj
  build::BuildScript
    build::BuildJava

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

Slots

cleanSource

@Target
Void clean()

Delete all intermediate and target files

compileSource

@Target
Void compile()

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()

Dump script environment for debug.

fullSource

@Target
Void full()

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.