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
FieldsModifier and TypeFieldDescriptionprivate final JavaCompileris that thread safe ???private final List<JavaCompiler> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompileInProcess(String[] args, CompilerConfiguration config, String[] sourceFiles) private CompilerMessage.KindconvertKind(Diagnostic<? extends JavaFileObject> diagnostic) private JavaCompilergetJavaCompiler(CompilerConfiguration compilerConfiguration) protected JavaCompilerprivate voidreleaseJavaCompiler(JavaCompiler javaCompiler, CompilerConfiguration compilerConfiguration) Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.plexus.logging.LogEnabled
enableLogging
-
Field Details
-
COMPILER
is that thread safe ??? -
JAVA_COMPILERS
-
-
Constructor Details
-
JavaxToolsCompiler
public JavaxToolsCompiler()
-
-
Method Details
-
newJavaCompiler
-
getJavaCompiler
-
releaseJavaCompiler
private void releaseJavaCompiler(JavaCompiler javaCompiler, CompilerConfiguration compilerConfiguration) -
compileInProcess
public CompilerResult compileInProcess(String[] args, CompilerConfiguration config, String[] sourceFiles) throws CompilerException - Specified by:
compileInProcessin interfaceInProcessCompiler- Throws:
CompilerException
-
convertKind
-