Added errors to PMD XML report generated via the CLI

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1391 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-01-30 19:18:20 +00:00
parent cf2f1ef061
commit 5420547377

View File

@ -115,7 +115,7 @@ public class PMD {
try {
pmd.processFile(new FileInputStream(file), rules, ctx);
} catch (PMDException pmde) {
pmde.printStackTrace();
ctx.getReport().addError(new Report.ProcessingError(pmde.getMessage(), file.getAbsolutePath()));
}
}
} catch (FileNotFoundException fnfe) {