From b87a629da6f82fda9a33a69de653fc5b7da82841 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Mon, 4 Aug 2003 14:46:31 +0000 Subject: [PATCH] Fixed [ 782235 ] Ant -verbose no longer triggers stacktrace git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2150 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/etc/build.xml | 2 +- pmd/etc/changelog.txt | 1 + pmd/src/net/sourceforge/pmd/ant/PMDTask.java | 1 + pmd/xdocs/credits.xml | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pmd/etc/build.xml b/pmd/etc/build.xml index 45c987aec6..6f2e931268 100644 --- a/pmd/etc/build.xml +++ b/pmd/etc/build.xml @@ -61,7 +61,7 @@ - + diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index 0d6b87e10c..3b50960e5f 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -1,5 +1,6 @@ ???? 2003 - 1.3: Fixed bug 782246 - FinalFieldCouldBeStatic no longer flags fields in interfaces. +Fixed bug 782235 - "ant -version" now prints more details when a file errors out. TODO - fix it so tests and rules don't duplicate the xpath expressions August 1, 2003 - 1.2.1: diff --git a/pmd/src/net/sourceforge/pmd/ant/PMDTask.java b/pmd/src/net/sourceforge/pmd/ant/PMDTask.java index 0ebbfb4c19..d07dd9dec9 100644 --- a/pmd/src/net/sourceforge/pmd/ant/PMDTask.java +++ b/pmd/src/net/sourceforge/pmd/ant/PMDTask.java @@ -129,6 +129,7 @@ public class PMDTask extends Task { } } catch (PMDException pmde) { log(pmde.toString(), Project.MSG_VERBOSE); + log(pmde.getReason().getMessage(), Project.MSG_VERBOSE); if (failOnError) { throw new BuildException(pmde); } diff --git a/pmd/xdocs/credits.xml b/pmd/xdocs/credits.xml index c711c3803b..fe5e0faa41 100644 --- a/pmd/xdocs/credits.xml +++ b/pmd/xdocs/credits.xml @@ -10,7 +10,7 @@
    -
  • Paul Roebuck - Bug report
  • +
  • Paul Roebuck - Several bug reports
  • Maik Schreiber - Bug report
  • Erik Lee - Bug report
  • Brandon Franklin - pmd-web suggestions