Class JavaxToolsCompiler
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.codehaus.plexus.compiler.javac.JavaxToolsCompiler
-
- All Implemented Interfaces:
InProcessCompiler
,org.codehaus.plexus.logging.LogEnabled
@Component(role=InProcessCompiler.class) public class JavaxToolsCompiler extends org.codehaus.plexus.logging.AbstractLogEnabled 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
-
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)
-
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
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)
-
-