Affects PMD Version:
6.18.0
Rule:
N/A
Description:
I previously was able to run the short-names parameter in my ant buildscript and it would output in the report with the relative path. In 6.18.0 it appears that shortnames has stopped working with Ant. The short-names parameter does work with the PMD CLI however.
Code Sample demonstrating the issue:
<target name="pmd">
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask">
<classpath>
<fileset dir="${pmdLibFolder}">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
<pmd shortFilenames="true" cacheLocation="pmd.cache">
<formatter type="xml" toFile="pmd_report.xml" toConsole="true"/>
<ruleset>ruleset.xml</ruleset>
<fileset dir="${src}">
<include name="**/Application.java"/>
</fileset>
</pmd>
</target>
Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
Ant
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4