{
dataFile.getParentFile().mkdirs();
}
// Execute the instrumentation task.
InstrumentTask task = new InstrumentTask();
setTaskDefaults( task );
task.setConfig( instrumentation );
task.setDestinationDir( instrumentedDirectory );
task.setDataFile( dataFile );
task.execute();
addCoberturaDependenciesToTestClasspath();
// Old, Broken way
System.setProperty( "net.sourceforge.cobertura.datafile", dataFile.getPath() );