Skip to content

Commit

Permalink
Site: add documentation for new run.sh script (unices only)
Browse files Browse the repository at this point in the history
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7700 51baf565-9d33-0410-a72c-fc3788e3496d
  • Loading branch information
Romain Pelisse committed Jun 12, 2012
1 parent 732bb2d commit eab43fe
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions pmd/src/site/xdocs/running.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,24 @@
</properties>

<body>
<section name="Running PMD via command line">
<subsection name="Basic usage">
<section name="Running PMD via command line">
<subsection name="On Linux and other UNIX based operating system...">
<p>PMD comes with several command line utilities. Previously, each of them had its own start up script, but this has been
greatly simplified since PMD 5.0... at least for Unix systems. There is now only one script, called "run.sh", inside
the bin/ directory of PMD distribution.</p>
<p>The first argument is the name of the utility you want to execute ('pmd', 'designer',...) and the other arguments are
specific to the utility used.</p>
<source>
$ ./bin/run.sh pmd ../../../src/main/java/ text rulesets/java/basic.xml -version java 1.7
.../src/main/java/net/sourceforge/pmd/RuleSet.java:123 These nested if statements could be combined
.../src/main/java/net/sourceforge/pmd/RuleSet.java:231 Useless parentheses.
.../src/main/java/net/sourceforge/pmd/RuleSet.java:232 Useless parentheses.
.../src/main/java/net/sourceforge/pmd/RuleSet.java:357 These nested if statements could be combined
.../src/main/java/net/sourceforge/pmd/RuleSetWriter.java:66 Avoid empty catch blocks
.../src/main/java/net/sourceforge/pmd/RuleSetWriter.java:269 Useless parentheses.
</source>
</subsection>
<subsection name="Basic usage for Windows">
<ul>
<li><strong>Windows:</strong> Type &quot;pmd [filename|jar or zip file containing source code|directory] [report format] [ruleset file]&quot;, i.e:</li>
<br/>
Expand Down

0 comments on commit eab43fe

Please sign in to comment.