C:\tmp\pmd-1.8\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
<?xml version="1.0"?><pmd>
<file name="c:\data\pmd\pmd\test-data\Unused1.java">
<violation line="5" rule="UnusedLocalVariable">
Avoid unused local variables such as 'fr'
</violation>
</file></pmd>
C:\tmp\pmd-1.8\pmd\etc>
C:\data\pmd\pmd>java -cp lib\pmd-1.8.jar;lib\xercesImpl-2.0.2.jar;
lib\xmlParserAPIs-2.0.2.jar;lib\jaxen-core-1.0-fcs.jar;lib\saxpath-1.0-fcs.jar
net.sourceforge.pmd.PMD
c:\j2sdk1.4.1_01\src\java\lang xml
rulesets/imports.xml
-debug - prints a stacktrace if an error is encountered-shortnames - puts shortened names in the report. This only works if the filename argument is a single directory-jdk13 - assumes JDK 1.3 usage of the 'assert' keyword/identifier-encoding UTF-8 - uses the specific encoding for reading the source code files