final CompilerConfiguration compilerConfiguration = GroovyScript
.createCompilerConfiguration();
compilerConfiguration.setTargetDirectory(dir);
final CompilationUnit unit = new CompilationUnit(compilerConfiguration, null, new GroovyClassLoader(
ScriptingEngine.class.getClassLoader()));
new FileSystemCompiler(compilerConfiguration, unit).compile(files);
LogUtils.info("compiled in " + dir + ": " + createNameList(files));
}
catch (Exception e) {
LogUtils.severe("error compiling in " + dir + createNameList(files), e);
}