JavaCompiler (final CompilerConfiguration config) { return new JavaCompiler() { @Override public void compile(List<String> files, CompilationUnit cu) { if (mailbox != null) { reportCompiledItems( out, GroovyCompilerWrapper.getStubOutputItems(unit, (File)config.getJointCompilationOptions().get(STUB_DIR)) ); out.flush(); err.flush(); pauseAndWaitForJavac(mailbox); wrapper.onContinuation(); } } }; }