Package org.codehaus.groovy.tools.javac
Class JavacJavaCompiler
java.lang.Object
org.codehaus.groovy.tools.javac.JavacJavaCompiler
- All Implemented Interfaces:
JavaCompiler
JavaCompiler implementation that delegates to the JDK system Java
compiler.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a javac-backed compiler for the supplied configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidcompile(List<String> files, CompilationUnit cu) Compiles the supplied Java source files with javac and reports any errors back to the Groovy compilation unit.
-
Constructor Details
-
JavacJavaCompiler
Creates a javac-backed compiler for the supplied configuration.- Parameters:
config- the compiler configuration to use
-
-
Method Details
-
compile
Compiles the supplied Java source files with javac and reports any errors back to the Groovy compilation unit.- Specified by:
compilein interfaceJavaCompiler- Parameters:
files- the Java source files to compilecu- the owning Groovy compilation unit
-