From 51987ba098d2cc91d49b1e818ea2ecd2ac8d8381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20K=C3=BChne?= Date: Sun, 2 Mar 2003 15:58:17 +0000 Subject: [PATCH] fix commandline, patch by Peter Dobratz --- docs/writingchecks.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/writingchecks.html b/docs/writingchecks.html index f75fe3184..b8399cfdc 100644 --- a/docs/writingchecks.html +++ b/docs/writingchecks.html @@ -405,6 +405,10 @@

+      <?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 @@
       

To run the new Check on the command line compile your Check, create a jar that contains the classes and property files, - e.g. mycompanychecks.jar. Then run: + e.g. mycompanychecks.jar. Then run + (with the path separator adjusted to your platform):

-      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 .