Command Line |
![]() |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
DescriptionThis document describes how to run checkstyle using the command line tool. The latest version of checkstyle can be found at http://checkstyle.sourceforge.net. This command line tool is included in the checkstyle distribution. InstallationThe easiest way is to include checkstyle-all-3.5.jar in the classpath. If you are running JDK 1.4 this contains all the classes required to run checkstyle (JDK 1.3 users must add a JAXP compliant XML parser implementation). Alternatively, you must include the following in the classpath:
UsageThe command line usage is:
Checkstyle will process the specified files and by default report errors to standard out in plain format. Checkstyle requires a configuration XML file that configures the checks to apply. Command line options are:
Set the properties for expanded
property values by either by assigning system properties using the
Examples
Run checkstyle with configuration file
Run checkstyle with configuration file
Run checkstyle with configuration file
Run checkstyle with configuration file
Run checkstyle with configuration file
Run checkstyle with configuration file
TipIt is possible to run Checkstyle directly from the JAR file using the -jar option. An example would be: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 2001-2004, Oliver Burn
|