Package org.castor.xmlctf.compiler
Class SunJavaCompiler
- java.lang.Object
-
- org.castor.xmlctf.compiler.SunJavaCompiler
-
- All Implemented Interfaces:
Compiler
public class SunJavaCompiler extends java.lang.Object implements Compiler
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.- Since:
- 1.0.5
- Version:
- $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ralf Joachim
-
-
Constructor Summary
Constructors Constructor Description SunJavaCompiler(java.io.File baseDirectory)
Creates a compiler for a given directory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compileDirectory()
Compiles the content of a directory.void
setJavaSourceVersion(float javaSourceVersion)
Sets the Java source version the current test will be using.
-
-
-
Method Detail
-
setJavaSourceVersion
public void setJavaSourceVersion(float javaSourceVersion)
Sets the Java source version the current test will be using.- Specified by:
setJavaSourceVersion
in interfaceCompiler
- Parameters:
javaSourceVersion
- The Java Source version to be used.
-
compileDirectory
public void compileDirectory()
Compiles the content of a directory. Throws aCompilationException
if the build fails.- Specified by:
compileDirectory
in interfaceCompiler
-
-