use of net.sourceforge.pmd.util.log.AntLogHandler in project pmd by pmd.
the class PMDTaskImpl method execute.
public void execute() throws BuildException {
final Handler antLogHandler = new AntLogHandler(project);
final ScopedLogHandlersManager logManager = new ScopedLogHandlersManager(Level.FINEST, antLogHandler);
try {
doTask();
} finally {
logManager.close();
// exceptions
if (configuration.getClassLoader() instanceof ClasspathClassLoader) {
IOUtil.tryCloseClassLoader(configuration.getClassLoader());
}
}
}
Aggregations