|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.castor.xmlctf.compiler.SunJavaCompiler
public class SunJavaCompiler
Compiles a directory tree, recursively. This class is built to use the Sun Javac compiler contained in tools.jar. A IllegalStateException will be thrown if tools.jar is not on the classpath at construction of the class and execution of the compileDirectory() method.
| Constructor Summary | |
|---|---|
SunJavaCompiler(java.io.File baseDirectory)
Creates a compiler for a given directory. |
|
| Method Summary | |
|---|---|
void |
compileDirectory()
Compiles the content of a directory. |
void |
setJavaSourceVersion(float javaSourceVersion)
Sets the Java source version the current test will be using. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SunJavaCompiler(java.io.File baseDirectory)
baseDirectory - The directory that holds the files to be compiled.| Method Detail |
|---|
public void setJavaSourceVersion(float javaSourceVersion)
setJavaSourceVersion in interface CompilerjavaSourceVersion - The Java Source version to be used.public void compileDirectory()
CompilationException
if the build fails.
compileDirectory in interface Compiler
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||