org.castor.xmlctf.compiler
Class AntJavaCompiler

java.lang.Object
  extended by org.castor.xmlctf.compiler.AntJavaCompiler
All Implemented Interfaces:
Compiler

public class AntJavaCompiler
extends java.lang.Object
implements Compiler

Compiles a directory tree, recursively. This class is built around the use of the ANT JAVAC task.


Constructor Summary
AntJavaCompiler(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

AntJavaCompiler

public AntJavaCompiler(java.io.File baseDirectory)
Creates a compiler for a given directory.

Parameters:
baseDirectory - The directory that holds the files to be compiled.
Method Detail

setJavaSourceVersion

public void setJavaSourceVersion(float javaSourceVersion)
Sets the Java source version the current test will be using.

Specified by:
setJavaSourceVersion in interface Compiler
Parameters:
javaSourceVersion - The Java Source version to be used.

compileDirectory

public void compileDirectory()
Compiles the content of a directory. Throws a CompilationException if the build fails.

Specified by:
compileDirectory in interface Compiler


Copyright © 2011. All Rights Reserved.