View Javadoc
1   /*
2    * Copyright 2005 Werner Guttmann
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5    * in compliance with the License. You may obtain a copy of the License at
6    *
7    * http://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software distributed under the License
10   * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11   * or implied. See the License for the specific language governing permissions and limitations under
12   * the License.
13   */
14  package org.castor.xmlctf.compiler;
15  
16  /**
17   * A Compilation interface used by the Castor Testing Framework.
18   */
19  public interface Compiler {
20  
21    /**
22     * Compiles the content of a directory tree.
23     * 
24     * @throws CompilationException If the build fails.
25     */
26    void compileDirectory() throws CompilationException;
27  
28    /**
29     * Configures the compiler to provide the -source argument for compilation. The Java source
30     * version is a float that is expected to be a value such as <tt>1.3</tt>, <tt>1.4</tt>, or
31     * <tt>1.5</tt>. However, integral values higher than 4 will be converted to the proper value so
32     * for example you can provide <tt>5</tt> as the Java source version.
33     *
34     * @param javaSourceVersion The Java source version.
35     */
36    void setJavaSourceVersion(float javaSourceVersion);
37  
38  }