* </p>
* Note: We're defining this method as static because it is also required in the report mojo and reporting mojos
* and main mojos cannot share anything right now. See http://jira.codehaus.org/browse/MNG-1886.
*/
public static void registerCloverAntTasks(final Project antProject, final Log log) {
antProject.addBuildListener(new MvnLogBuildListener(log));
final Taskdef taskdef = (Taskdef) antProject.createTask("taskdef");
taskdef.init();
taskdef.setResource("cloverlib.xml");
taskdef.execute();
}