Compiler, org.codehaus.plexus.logging.LogEnabledpublic class JavacCompiler extends AbstractCompiler
EOL, PS| Constructor | Description |
|---|---|
JavacCompiler() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String[] |
buildCompilerArguments(CompilerConfiguration config,
java.lang.String[] sourceFiles) |
|
protected CompilerResult |
compileInProcessWithProperClassloader(java.lang.Class<?> javacClass,
java.lang.String[] args) |
|
protected CompilerResult |
compileOutOfProcess(CompilerConfiguration config,
java.lang.String executable,
java.lang.String[] args) |
Compile the java sources in a external process, calling an external executable,
like javac.
|
java.lang.String[] |
createCommandLine(CompilerConfiguration config) |
Create the command line that would be executed using this configuration.
|
protected java.lang.Class<?> |
createJavacClass() |
Helper method for create Javac class
|
protected static boolean |
isJava16() |
|
CompilerResult |
performCompile(CompilerConfiguration config) |
Performs the compilation of the project.
|
canUpdateTarget, compile, getCompilerOutputStyle, getInputFileEnding, getOutputFile, getOutputFileEnding, getPathString, getSourceFiles, getSourceFilesForSourceRoot, makeClassName, toStringArraypublic CompilerResult performCompile(CompilerConfiguration config) throws CompilerException
CompilerperformCompile in interface CompilerperformCompile in class AbstractCompilerconfig - the configuration description of the compilation
to performCompilerExceptionprotected static boolean isJava16()
public java.lang.String[] createCommandLine(CompilerConfiguration config) throws CompilerException
Compilerconfig - the CompilerConfiguration describing the compilationCompilerException - if there was an error generating the command
linepublic static java.lang.String[] buildCompilerArguments(CompilerConfiguration config, java.lang.String[] sourceFiles)
protected CompilerResult compileOutOfProcess(CompilerConfiguration config, java.lang.String executable, java.lang.String[] args) throws CompilerException
config - compiler configurationexecutable - name of the executable to launchargs - arguments for the executable launchedCompilerExceptionprotected CompilerResult compileInProcessWithProperClassloader(java.lang.Class<?> javacClass, java.lang.String[] args) throws CompilerException
CompilerExceptionprotected java.lang.Class<?> createJavacClass()
throws CompilerException
CompilerExceptionCopyright © 2018. All rights reserved.