diff --git a/feed.xml b/feed.xml index 0d627afa34..d5fbd14e94 100644 --- a/feed.xml +++ b/feed.xml @@ -5,8 +5,8 @@ Intended as a documentation theme based on Jekyll for technical writers documenting software and other technical products, this theme has all the elements you would need to handle multiple products with both multi-level sidebar navigation, tags, and other documentation features. https://pmd.github.io/pmd/ - Thu, 26 Jan 2023 15:05:09 +0000 - Thu, 26 Jan 2023 15:05:09 +0000 + Thu, 26 Jan 2023 16:41:50 +0000 + Thu, 26 Jan 2023 16:41:50 +0000 Jekyll v3.9.2 diff --git a/pmd_release_notes.html b/pmd_release_notes.html index 802034fbf2..3307e48766 100644 --- a/pmd_release_notes.html +++ b/pmd_release_notes.html @@ -1622,6 +1622,7 @@ with charting functions. It uses an XSLT stylesheet to convert PMD’s XML forma
  • core
    Internal APIs
    diff --git a/pmd_userdocs_cli_reference.html b/pmd_userdocs_cli_reference.html index 51da2091a9..9c2a5be0c2 100644 --- a/pmd_userdocs_cli_reference.html +++ b/pmd_userdocs_cli_reference.html @@ -1970,7 +1970,8 @@ -language <lang>
    -l <lang>
    - Specify the language PMD should use. Used together with -version. See also Supported Languages. + Specify the language PMD should use. Used together with -version. See also Supported Languages. +

    Deprecated since PMD 6.52.0. Use --use-version instead.

    @@ -2076,6 +2077,32 @@ + + + + + --relativize-paths-with <path>
    -z <path>
    + Path relative to which directories are rendered in the report. This option allows + shortening directories in the report; without it, paths are rendered as mentioned in the source directory (option "--dir"). + The option can be repeated, in which case the shortest relative path will be used. + If the root path is mentioned (e.g. "/" or "C:\\"), then the paths will be rendered as absolute. + This option replaces --short-names since PMD 6.54.0. + + + + + + + + + + + + + + + + @@ -2103,7 +2130,8 @@ --short-names - Prints shortened filenames in the report. + Prints shortened filenames in the report. +

    Deprecated since PMD 6.54.0. Use --relativize-paths-with instead.

    @@ -2258,7 +2286,8 @@ -version <version>
    -v <version>
    - Specify the version of a language PMD should use. Used together with -language. See also Supported Languages. + Specify the version of a language PMD should use. Used together with -language. See also Supported Languages. +

    Deprecated since PMD 6.52.0. Use --use-version instead.

    diff --git a/pmd_userdocs_tools_ant.html b/pmd_userdocs_tools_ant.html index d223a2f4bc..d3b6c4f583 100644 --- a/pmd_userdocs_tools_ant.html +++ b/pmd_userdocs_tools_ant.html @@ -1671,7 +1671,11 @@ then you can make use of the PMD Task like this:

    shortFilenames - Places truncated filenames in the report. This can reduce your report file size by 15%-20%. + + Deprecated Use relativizePathsWith + as nested element instead. + Places truncated filenames in the report. This can reduce your report file size by 15%-20%. + No @@ -1777,7 +1781,7 @@ automatically and the latest language version is used.

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