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 JavaCompiler
is that thread safe ???private final List<JavaCompiler>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompileInProcess
(String[] args, CompilerConfiguration config, String[] sourceFiles) private CompilerMessage.Kind
convertKind
(Diagnostic<? extends JavaFileObject> diagnostic) private JavaCompiler
getJavaCompiler
(CompilerConfiguration compilerConfiguration) protected JavaCompiler
private void
releaseJavaCompiler
(JavaCompiler javaCompiler, CompilerConfiguration compilerConfiguration) Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
compileInProcess
in interfaceInProcessCompiler
- Throws:
CompilerException
-
convertKind
-