diff --git a/feed.xml b/feed.xml
index 0d627afa34..d5fbd14e94 100644
--- a/feed.xml
+++ b/feed.xml
@@ -5,8 +5,8 @@
--short-names
--relativize-paths-with
flag (or short -z
), which replaces --short-names
.
+It serves the same purpose: Shortening the pathnames in the reports. However, with the new flag it’s possible
+to explicitly define one or more pathnames that should be used as the base when creating relative paths.
+The old flag --short-names
is deprecated.CPDConfiguration
w
replacement. CLI tests should be done in pmd-core only (and in PMD7 in pmd-cli). Individual language modules
shouldn’t need to test the CLI integration logic again. Instead, the individual language modules should test their
functionality as unit tests.CPDConfiguration.LanguageConverter
FileCollector#addZipFile
has been deprecated. It is replaced
+by FileCollector#addZipFileWithContent
which directly adds the
+content of the zip file for analysis.
PMDConfiguration#setReportShortNames
and
+PMDConfiguration#isReportShortNames
have been deprecated for removal.
+Use PMDConfiguration#addRelativizeRoot
instead.-language <lang>
-l <lang>
-version
. See also Supported Languages.-version
. See also Supported Languages.
+ Deprecated since PMD 6.52.0. Use --use-version
instead.
--relativize-paths-with <path>
-z <path>
--short-names
since PMD 6.54.0.
--short-names
Deprecated since PMD 6.54.0. Use --relativize-paths-with
instead.
-version <version>
-v <version>
-language
. See also Supported Languages.-language
. See also Supported Languages.
+ Deprecated since PMD 6.52.0. Use --use-version
instead.
relativizePathsWith
+ as nested element instead.
+ Places truncated filenames in the report. This can reduce your report file size by 15%-20%.
+ <target name="pmd">
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"/>
- <pmd shortFilenames="true">
+ <pmd>
<ruleset>rulesets/java/quickstart.xml</ruleset>
<ruleset>config/my-ruleset.xml</ruleset>
<fileset dir="/usr/local/j2sdk1.4.1_01/src/">
@@ -1790,6 +1794,12 @@ automatically and the latest language version is used.
fileset
nested element - specify the actual java source files, that PMD should analyze. You can use multiple
fileset elements. See FileSet for the syntax and usage.
+relativizePathsWith
nested element - configures the paths relative to which directories are rendered in the report.
+This option allows shortening directories in the report; without it, paths are rendered as absolute paths.
+The option can be repeated, in which case the shortest relative path will be used.
+It is a path-like structure.
+This option replaces shortFilenames
since PMD 6.54.0.
+
Language version selection
PMD selects the language automatically using the file extension. If multiple versions of a language are
@@ -2009,7 +2019,7 @@ Total time: 2 seconds
<target name="pmd">
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"/>
- <pmd rulesetfiles="rulesets/java/quickstart.xml" shortFilenames="true">
+ <pmd rulesetfiles="rulesets/java/quickstart.xml">
<formatter type="html" toFile="pmd_report.html">
<param name="linkPrefix" value="https://maven.apache.org/plugins/maven-pmd-plugin/xref/"/>
<param name="linePrefix" value="L"/>
@@ -2017,6 +2027,9 @@ Total time: 2 seconds
<fileset dir="/usr/local/j2sdk1.4.1_01/src/">
<include name="java/lang/*.java"/>
</fileset>
+ <relativizePathsWith>
+ <pathelement location="/usr/local/j2sdk1.4.1_01/src/"/>
+ </relativizePathsWith>
</pmd>
</target>