title: Running all PMD rulesets from command line
body: <p>I want to know if there is a way to run all PMD rulesets from command line.</p>
  
  <p>I've used PMD integrated with Eclipse IDE and Maven. But now I need to run it from CLI.
  I've checked this page <a href="http://pmd.sourceforge.net/pmd-5.1.0/running.html" rel="nofollow noreferrer">http://pmd.sourceforge.net/pmd-5.1.0/running.html</a> and it says you can run it from CLI, but with specified rulesets:</p>
  
  <pre><code>C:\tmp\pmd-bin-5.1.0\pmd\bin&gt;pmd -d c:\data\pmd\pmd\test-data\Unused1.java -f xml -R rulesets/java/unusedcode.xml
  </code></pre>
  
  <p>In that example, you just get results for <strong>Java unused code</strong> rule and I'm trying to achieve something like:</p>
  
  <pre><code>C:\tmp\pmd-bin-5.1.0\pmd\bin&gt;pmd -d c:\data\pmd\pmd\test-data\Unused1.java -f xml -R rulesets/java/*.xml
  </code></pre>
  
  <p>and get results for all rules in Java rulesets.</p>