super.execute();
logArtifacts( "before changes" );
// Instrument both the main sources and the test sources if the user has configured it
final MainInstrumenter mainInstrumenter = new MainInstrumenter( this, cloverOutputSourceDirectory );
final TestInstrumenter testInstrumenter = new TestInstrumenter( this, cloverOutputTestSourceDirectory );
if ( isJavaProject() )
{
mainInstrumenter.instrument();
if ( this.includesTestSourceRoots )
{
testInstrumenter.instrument();
}
}
addCloverDependencyToCompileClasspath();
injectGrover(outDir);
swizzleCloverDependencies();
// Modify Maven model so that it points to the new source directories and to the clovered
// artifacts instead of the original values.
String originalSrcDir = mainInstrumenter.redirectSourceDirectories();
originalSrcMap.put(getProject().getArtifactId(), originalSrcDir);
if ( this.includesTestSourceRoots )
{
String originalSrcTestDir = testInstrumenter.redirectSourceDirectories();
originalSrcTestMap.put(getProject().getArtifactId(), originalSrcTestDir);