Interface Compiler

All Known Implementing Classes:
AntJavaCompiler, SunJavaCompiler

public interface Compiler
A Compilation interface used by the Castor Testing Framework.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Compiles the content of a directory tree.
    void
    setJavaSourceVersion(float javaSourceVersion)
    Configures the compiler to provide the -source argument for compilation.
  • Method Details

    • compileDirectory

      void compileDirectory() throws CompilationException
      Compiles the content of a directory tree.
      Throws:
      CompilationException - If the build fails.
    • setJavaSourceVersion

      void setJavaSourceVersion(float javaSourceVersion)
      Configures the compiler to provide the -source argument for compilation. The Java source version is a float that is expected to be a value such as 1.3, 1.4, or1.5. However, integral values higher than 4 will be converted to the proper value so for example you can provide 5 as the Java source version.
      Parameters:
      javaSourceVersion - The Java source version.