|
Mura CMS 6.1 | ||||
| FRAMES | |||||
railo-context.Component
mura.javaloader.JavaCompiler
public class JavaCompiler
Compiles Java source dirs to an array of .jar files.
| Constructor Summary | |
|---|---|
init([string jarDirectory='[runtime expression]'])
Constructor |
|
| Method Summary | |
|---|---|
private array |
addClassLoaderFiles(array options, any classLoader, array directoryArray)
adds a set of files to the file manager from the urlclassloader |
any |
compile(array directoryArray, [any classLoader], [string jarName='[runtime expression]'])
compiles Java to bytecode, and returns a JAR |
private any |
getCompiler()
|
private string |
getJarDirectory()
|
string |
getVersion()
returns the version number |
private void |
println(string str)
|
private void |
setCompiler(any Compiler)
|
private void |
setJarDirectory(string jarDirectory)
|
private any |
throwException(string type, string message, [string detail=''])
Throws an Exception |
| Methods inherited from class railo-context.Component |
|---|
|
| Constructor Detail |
|---|
public init([string jarDirectory='[runtime expression]'])
jarDirectory - the directory to build the .jar file in, defaults to ./tmp| Method Detail |
|---|
private array addClassLoaderFiles(array options, any classLoader, array directoryArray)
options - the options arrayclassLoader - URLClassloader to use as the parent for compilationdirectoryArray - array of directories to compilepublic any compile(array directoryArray, [any classLoader], [string jarName='[runtime expression]'])
directoryArray - array of directories to compileclassLoader - a optional URLClassloader to use as the parent for compilationjarName - The name of the jar file. Defaults to a UUIDprivate any getCompiler()
private string getJarDirectory()
public string getVersion()
private void println(string str)
strprivate void setCompiler(any Compiler)
Compilerprivate void setJarDirectory(string jarDirectory)
jarDirectoryprivate any throwException(string type, string message, [string detail=''])
type - The type of exceptionmessage - The message to accompany the exceptiondetail - The detail message for the exception
|
Mura CMS 6.1 | ||||
| FRAMES | |||||