public class JavacCompiler extends AbstractCompiler
EOL, PS| Constructor and Description |
|---|
JavacCompiler() |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
buildCompilerArguments(CompilerConfiguration config,
String[] sourceFiles) |
protected CompilerResult |
compileInProcessWithProperClassloader(Class<?> javacClass,
String[] args) |
protected CompilerResult |
compileOutOfProcess(CompilerConfiguration config,
String executable,
String[] args)
Compile the java sources in a external process, calling an external executable,
like javac.
|
String[] |
createCommandLine(CompilerConfiguration config) |
protected Class<?> |
createJavacClass()
Helper method for create Javac class
|
protected static boolean |
isJava16() |
CompilerResult |
performCompile(CompilerConfiguration config) |
canUpdateTarget, compile, getCompilerOutputStyle, getInputFileEnding, getOutputFile, getOutputFileEnding, getPathString, getSourceFiles, getSourceFilesForSourceRoot, makeClassName, toStringArraypublic CompilerResult performCompile(CompilerConfiguration config) throws CompilerException
performCompile in interface CompilerperformCompile in class AbstractCompilerCompilerExceptionprotected static boolean isJava16()
public String[] createCommandLine(CompilerConfiguration config) throws CompilerException
CompilerExceptionpublic static String[] buildCompilerArguments(CompilerConfiguration config, String[] sourceFiles)
protected CompilerResult compileOutOfProcess(CompilerConfiguration config, String executable, String[] args) throws CompilerException
config - compiler configurationexecutable - name of the executable to launchargs - arguments for the executable launchedCompilerExceptionprotected CompilerResult compileInProcessWithProperClassloader(Class<?> javacClass, String[] args) throws CompilerException
CompilerExceptionprotected Class<?> createJavacClass() throws CompilerException
CompilerExceptionCopyright © 2001–2016 Codehaus Plexus. All rights reserved.