WEB-INF.cftags.component coldbox.system.core.javaloader.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 WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
Constructor
jarDirectory
- the directory to build the .jar file in, defaults to ./tmpMethod Detail |
---|
adds a set of files to the file manager from the urlclassloader
options
- the options arrayclassLoader
- URLClassloader to use as the parent for compilationdirectoryArray
- array of directories to compilecompiles Java to bytecode, and returns a JAR
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 UUIDreturns the version number
str
- Compiler
jarDirectory
Throws an Exception
type
- The type of exceptionmessage
- The message to accompany the exceptiondetail
- The detail message for the exception