getLog().info("Generation of Clover Groovy configuration is disabled. No Groovy instrumentation will occur.");
return;
}
// create the groovy config for Clover's ASTTransformer
InstrumentationConfig config = new InstrumentationConfig();
config.setProjectName(this.getProject().getName());
config.setInitstring(this.resolveCloverDatabase());
config.setTmpDir(outDir);
final List<File> includeFiles = calcIncludedFilesForGroovy();
getLog().debug("Clover including the following files for Groovy instrumentation: " + includeFiles);
config.setIncludedFiles(includeFiles);
config.setEnabled(true);
config.setEncoding(getEncoding());
//Don't pass in an instance of DistributedCoverage because it can't be deserialised
//by Grover (ClassNotFoundException within the groovyc compiler)
config.setDistributedConfig(getDistributedCoverage() == null ? null : new DistributedConfig(getDistributedCoverage().getConfigString()));
try {
File groverJar = GroovycSupport.extractGroverJar(this.groverJar, false);
File groverConfigDir = GroovycSupport.newConfigDir(config, new File(getProject().getBuild().getOutputDirectory()));