Components

Component JavaCompiler

Compiles Java source dirs to an array of .jar files.

Functions

addClassLoaderFiles
adds a set of files to the file manager from the urlclassloader

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
options array true the options array
classLoader any true URLClassloader to use as the parent for compilation
directoryArray array true array of directories to compile
compile
compiles Java to bytecode, and returns a JAR

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
directoryArray array true array of directories to compile
classLoader any false a optional URLClassloader to use as the parent for compilation
jarName string false The name of the jar file. Defaults to a UUID
getCompiler
getJarDirectory
getVersion
returns the version number
init
Constructor

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
jarDirectory string false the directory to build the .jar file in, defaults to ./tmp
println

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
str string true
setCompiler

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
Compiler any true
setJarDirectory

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
jarDirectory string true
throwException
Throws an Exception

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
type string true The type of exception
message string true The message to accompany the exception
detail string false The detail message for the exception