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