From 9f9e4ff8e93caabb267abbfdd453925cfad5d2d4 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Wed, 12 Feb 2003 14:40:10 +0000 Subject: [PATCH] modified ant task so that verbose=true prints complete stacktraces git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1429 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/etc/changelog.txt | 2 ++ pmd/etc/doing_the_next_pmd_release.txt | 3 +++ pmd/src/net/sourceforge/pmd/ant/PMDTask.java | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index cc8109ab02..ee9895ac07 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -1,3 +1,5 @@ +?????? - 1.04 + February 11, 2003 - 1.03 Added new rules: CyclomaticComplexityRule, AssignmentInOperandRule Added numbering to the HTMLRenderer; thx to Luke Francl for the code. diff --git a/pmd/etc/doing_the_next_pmd_release.txt b/pmd/etc/doing_the_next_pmd_release.txt index db78ed282e..fc3c6e9158 100644 --- a/pmd/etc/doing_the_next_pmd_release.txt +++ b/pmd/etc/doing_the_next_pmd_release.txt @@ -1,3 +1,5 @@ +>>>>>>>>>>>>>>>>> Update ant docs to reflect verbose attribute change + Move rulesets/tmp.xml somewhere else update run.bat to point to pmd-1.03.jar update cpdgui.bat to point to pmd-1.03.jar @@ -37,6 +39,7 @@ copy ..\lib\xmlParserAPIs-2.0.2.jar c:\tmp\pmd\lib copy ..\lib\xercesImpl-2.0.2.jar c:\tmp\pmd\lib copy the docs directory over to c:\tmp\pmd -- how to do this on cmd line? copy the test-data directory over to c:\tmp\pmd +copy the xslt directory over to c:\tmp\pmd Zip it up, rename it pmd-bin-1.03.zip Time to tag: diff --git a/pmd/src/net/sourceforge/pmd/ant/PMDTask.java b/pmd/src/net/sourceforge/pmd/ant/PMDTask.java index fa44e1f4ca..3d32309c1f 100644 --- a/pmd/src/net/sourceforge/pmd/ant/PMDTask.java +++ b/pmd/src/net/sourceforge/pmd/ant/PMDTask.java @@ -106,6 +106,10 @@ public class PMDTask extends Task { throw new BuildException(fnfe); } } catch (PMDException pmde) { + if (verbose) { + pmde.printStackTrace(); + pmde.getOriginalException().printStackTrace(); + } if (failOnError) { throw new BuildException(pmde); }