private void logDatabase(final String database) {
final Project antProject = new Project();
antProject.init();
AbstractCloverMojo.registerCloverAntTasks(antProject, getLog());
CloverLogTask cloverLogTask = (CloverLogTask) antProject.createTask("clover-log");
cloverLogTask.init();
cloverLogTask.setInitString(database);
cloverLogTask.setOutputProperty("cloverlogproperty");
if (this.contextFilters != null) {
cloverLogTask.setFilter(this.contextFilters);
}
setTestSourceRoots(cloverLogTask);
cloverLogTask.execute();
getLog().info(antProject.getProperty("cloverlogproperty"));
}