public class JavacJavaCompiler
extends Object
implements JavaCompiler
JavaCompiler implementation that delegates to the JDK system Java compiler.
| Constructor and description |
|---|
JavacJavaCompiler(CompilerConfiguration config)Creates a javac-backed compiler for the supplied configuration. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
compile(List<String> files, CompilationUnit cu)Compiles the supplied Java source files with javac and reports any errors back to the Groovy compilation unit. |
Creates a javac-backed compiler for the supplied configuration.
config - the compiler configuration to useCompiles the supplied Java source files with javac and reports any errors back to the Groovy compilation unit.
files - the Java source files to compilecu - the owning Groovy compilation unitCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.