abstractpublic class AbstractJavaCompiler extends AbstractLogEnabled implements LanguageCompiler,Recyclable(Code)
This class implements the functionality common to all Java compilers.
author: Stefano Mazzocchi version: CVS $Id: AbstractJavaCompiler.java 433543 2006-08-22 06:22:54Z crossley $ since: 2.0
Return the list of errors generated by this compilation
The list of errors generated by this compilation exception: IOException - If an error occurs during message collection
Parse the compiler error stream to produce a list of
CompilerErrors
Parameters: errors - The error stream The list of compiler error messages exception: IOException - If an error occurs during message collection
Set the classpath to be used for this compilation
Parameters: classpath - The classpath to be used for this compilation
setCompilerComplianceLevel
public void setCompilerComplianceLevel(int compilerComplianceLevel)(Code)
Set the version of the java source code to be compiled
Parameters: compilerComplianceLevel - The version of the JVM for wich the code was written.i.e: 130 = Java 1.3, 140 = Java 1.4 and 150 = Java 1.5 since: 2.1.7
Set the name of the directory to contain the resulting object program file
Parameters: destDir - The name of the directory to contain the resulting objectprogram file
Set the encoding of the input source file or null to use the
platform's default encoding
Parameters: encoding - The encoding of the input source file or nullto use the platform's default encoding