ResourceCompilationUtil

object ResourceCompilationUtil: Any

Fields

Name Description
val TEMP_DIR: String
val COMP_DIR: String

Methods

compileJavaFiles

fun compileJavaFiles(files: List<PlumeFile>): List<JVMClassFile>

Given paths to a Java source files, programmatically compiles the source (.java) files.

Parameters

Name Description
files: List<PlumeFile>

the source files to compile.

ReturnValue

Name Description
List<JVMClassFile>

moveClassFiles

fun moveClassFiles(files: List<JVMClassFile>): List<JVMClassFile>

Inspects class files and moves them to the temp directory based on their package path.

Parameters

Name Description
files: List<JVMClassFile>

the class files to move.

ReturnValue

Name Description
List<JVMClassFile>

unzipArchive

fun unzipArchive(zf: ZipFile): {entry.name} from archive ${zf.name}.") } yield(destFile) } } }

Parameters

Name Description
zf: ZipFile

ReturnValue

Name Description
{entry.name} from archive ${zf.name}.") } yield(destFile) } } }

compileLoadedFiles

fun compileLoadedFiles(files: HashSet<PlumeFile>): Set<JVMClassFile>

Will compile all supported source files loaded in the given set.

Parameters

Name Description
files: HashSet<PlumeFile>

PlumeFile pointers to source files.

ReturnValue

Name Description
Set<JVMClassFile>

A set of PlumeFile pointers to the compiled class files.