From 54205473771959d03ada8b43e9202a18893760fe Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Thu, 30 Jan 2003 19:18:20 +0000 Subject: [PATCH] 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 --- pmd/src/net/sourceforge/pmd/PMD.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd/src/net/sourceforge/pmd/PMD.java b/pmd/src/net/sourceforge/pmd/PMD.java index e4e478ab13..008952926f 100644 --- a/pmd/src/net/sourceforge/pmd/PMD.java +++ b/pmd/src/net/sourceforge/pmd/PMD.java @@ -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) {