Class JavaxToolsCompiler
- java.lang.Object
-
- org.codehaus.plexus.compiler.javac.JavaxToolsCompiler
-
- All Implemented Interfaces:
InProcessCompiler
@Named public class JavaxToolsCompiler extends java.lang.Object implements InProcessCompiler
- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description private javax.tools.JavaCompiler
COMPILER
is that thread safe ???private java.util.List<javax.tools.JavaCompiler>
JAVA_COMPILERS
private org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description JavaxToolsCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompilerResult
compileInProcess(java.lang.String[] args, CompilerConfiguration config, java.lang.String[] sourceFiles)
private CompilerMessage.Kind
convertKind(javax.tools.Diagnostic<? extends javax.tools.JavaFileObject> diagnostic)
private javax.tools.JavaCompiler
getJavaCompiler(CompilerConfiguration compilerConfiguration)
protected javax.tools.JavaCompiler
newJavaCompiler()
private void
releaseJavaCompiler(javax.tools.JavaCompiler javaCompiler, CompilerConfiguration compilerConfiguration)
-
-
-
Method Detail
-
newJavaCompiler
protected javax.tools.JavaCompiler newJavaCompiler()
-
getJavaCompiler
private javax.tools.JavaCompiler getJavaCompiler(CompilerConfiguration compilerConfiguration)
-
releaseJavaCompiler
private void releaseJavaCompiler(javax.tools.JavaCompiler javaCompiler, CompilerConfiguration compilerConfiguration)
-
compileInProcess
public CompilerResult compileInProcess(java.lang.String[] args, CompilerConfiguration config, java.lang.String[] sourceFiles) throws CompilerException
- Specified by:
compileInProcess
in interfaceInProcessCompiler
- Throws:
CompilerException
-
convertKind
private CompilerMessage.Kind convertKind(javax.tools.Diagnostic<? extends javax.tools.JavaFileObject> diagnostic)
-
-