fix commandline, patch by Peter Dobratz
This commit is contained in:
parent
4af1cc7842
commit
51987ba098
|
|
@ -405,6 +405,10 @@
|
|||
</p>
|
||||
|
||||
<pre>
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Puppy Crawl//DTD Check Configuration 1.0//EN"
|
||||
"http://www.puppycrawl.com/dtds/configuration_1_0.dtd">
|
||||
<module name="Checker">
|
||||
<module name="TreeWalker">
|
||||
|
||||
|
|
@ -423,11 +427,12 @@
|
|||
<p class="body">
|
||||
To run the new Check on the command line compile your Check,
|
||||
create a jar that contains the classes and property files,
|
||||
e.g. <span class="code">mycompanychecks.jar</span>. Then run:
|
||||
e.g. <span class="code">mycompanychecks.jar</span>. Then run
|
||||
(with the path separator adjusted to your platform):
|
||||
</p>
|
||||
<pre>
|
||||
java -classpath mycompanychecks.jar \
|
||||
-jar checkstyle-all-@CHECKSTYLE_VERSION@ \
|
||||
java -classpath mycompanychecks.jar:checkstyle-all-@CHECKSTYLE_VERSION@.jar \
|
||||
com.puppycrawl.tools.checkstyle.Main \
|
||||
-c config.xml -r .
|
||||
</pre>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue