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
This commit is contained in:
Tom Copeland
2003-02-12 14:40:10 +00:00
parent de63be476d
commit 9f9e4ff8e9
3 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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:

View File

@ -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);
}