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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user