From d347e38622708483c0a196dc361640e4e44c4eee Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Mon, 22 Apr 2013 20:23:13 +0200 Subject: [PATCH] pmd: fix #1086 Unsupported Element and Attribute in Ant Task Example --- pmd/etc/changelog.txt | 1 + pmd/src/site/xdocs/ant-task.xml | 46 +++++++++++++++++++++------------ 2 files changed, 31 insertions(+), 16 deletions(-) diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index a74ea97c99..66c5d64bf4 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -4,6 +4,7 @@ Fixed bug 254: False+ : UnusedImport with Javadoc @throws Fixed bug 1080: net.sourceforge.pmd.cpd.CPDTest test failing Fixed bug 1081: Regression: CPD skipping all files when using relative paths Fixed bug 1082: CPD performance issue on larger projects +Fixed bug 1086: Unsupported Element and Attribute in Ant Task Example April 5, 2013 - 5.0.3: diff --git a/pmd/src/site/xdocs/ant-task.xml b/pmd/src/site/xdocs/ant-task.xml index 3b511f0970..2babcccff9 100644 --- a/pmd/src/site/xdocs/ant-task.xml +++ b/pmd/src/site/xdocs/ant-task.xml @@ -71,27 +71,35 @@

formatter nested element - specifies the format of and the files to which the report is written.

- - - - + + + + - + - - + + - - + -
NameValues
formatxml,html,text,csv,papari,summaryhtml
typexml,ideaj,textcolor,text,textpad,emacs,csv,html,xslt,yahtml,summaryhtml,vbhtml
showSuppressed Whether to show suppressed warnings; "false" is the default.
filenametoFile A filename to which to write the report
linkPrefixUsed for linking to online HTMLized source (like this). See example below.toConsoleWhether to output the report to the console; "false" is the default.
linePrefixUsed for linking to online HTMLized source (like this). See example below. +

The formatter element can contain nested param elements to configure the formatter in detail, e.g.

+
+
linkPrefix
+
Used for linking to online HTMLized source (like this). See example below.
+
linePrefix
+
Used for linking to online HTMLized source (like this). See example below.
+
+
+ +

classpath nested element - useful for specifying custom rule. More details on the classpath element are in the Ant documentation here and there's @@ -110,7 +118,9 @@ rulesets/java/design.xml java-basic - + + + @@ -122,9 +132,9 @@ - -

The language to be used for parsing is selected via the sourceLanguage nested element. - Possible values are:

+ +

The specific version of a language to be used for parsing is selected via the sourceLanguage + nested element. Possible values are:

- + + + @@ -296,7 +308,9 @@ Total time: 2 seconds - + + +