org.codehaus.plexus.compiler.javac
public class JavacCompiler extends AbstractCompiler
Version: $Id: JavacCompiler.java 3081 2006-03-22 06:55:18Z carlos $
Field Summary | |
---|---|
static String | WARNING_PREFIX |
Constructor Summary | |
---|---|
JavacCompiler() |
Method Summary | |
---|---|
static String[] | buildCompilerArguments(CompilerConfiguration config, String[] sourceFiles) |
List | compile(CompilerConfiguration config) |
List | compileInProcess(String[] args)
Compile the java sources in the current JVM, without calling an external executable,
using com.sun.tools.javac.Main class
|
List | compileOutOfProcess(File workingDirectory, String executable, String[] args)
Compile the java sources in a external process, calling an external executable,
like javac.
|
String[] | createCommandLine(CompilerConfiguration config) |
static CompilerError | parseModernError(String error)
Construct a CompilerError object from a line of the compiler output
|
protected static List | parseModernStream(BufferedReader input)
Parse the output from the compiler into a list of CompilerError objects
|
static boolean | suppressEncoding(CompilerConfiguration config) |
static boolean | suppressSource(CompilerConfiguration config) |
com.sun.tools.javac.Main
class
Parameters: args arguments for the compiler as they would be used in the command line javac
Returns: List of CompilerError objects with the errors encountered.
Throws: CompilerException
Parameters: workingDirectory base directory where the process will be launched executable name of the executable to launch args arguments for the executable launched
Returns: List of CompilerError objects with the errors encountered.
Throws: CompilerException
Parameters: error output line from the compiler
Returns: the CompilerError object
Parameters: input The output of the compiler
Returns: List of CompilerError objects
Throws: IOException