Package org.castor.xmlctf.compiler
Class AntJavaCompiler
java.lang.Object
org.castor.xmlctf.compiler.AntJavaCompiler
- All Implemented Interfaces:
Compiler
Compiles a directory tree, recursively. This class is built around the use of
the ANT JAVAC task.
-
Constructor Summary
ConstructorsConstructorDescriptionAntJavaCompiler(File baseDirectory) Creates a compiler for a given directory. -
Method Summary
Modifier and TypeMethodDescriptionvoidCompiles the content of a directory.voidsetJavaSourceVersion(float javaSourceVersion) Sets the Java source version the current test will be using.
-
Constructor Details
-
AntJavaCompiler
Creates a compiler for a given directory.- Parameters:
baseDirectory- The directory that holds the files to be compiled.
-
-
Method Details
-
setJavaSourceVersion
public void setJavaSourceVersion(float javaSourceVersion) Sets the Java source version the current test will be using.- Specified by:
setJavaSourceVersionin interfaceCompiler- Parameters:
javaSourceVersion- The Java Source version to be used.
-
compileDirectory
public void compileDirectory()Compiles the content of a directory. Throws aCompilationExceptionif the build fails.- Specified by:
compileDirectoryin interfaceCompiler
-