Added google and sun configs to jar, issue #305

This commit is contained in:
alexkravin 2014-12-25 01:55:18 +04:00 committed by Roman Ivanov
parent e6b25218eb
commit c17bf06af9
3 changed files with 3 additions and 2 deletions

View File

@ -91,7 +91,8 @@ java -D<property>=<value> \
checkstyle-${projectVersion}-all.jar</a>.
An example of run would be:
<source>
java -jar checkstyle-${projectVersion}-all.jar -c sun_checks.xml MyClass.java
java -jar checkstyle-${projectVersion}-all.jar -c /sun_checks.xml MyClass.java
java -jar checkstyle-${projectVersion}-all.jar -c /google_checks.xml MyClass.java
</source>
Official configuration files:
<a href="https://raw.githubusercontent.com/checkstyle/checkstyle/master/sun_checks.xml">sun_checks.xml</a>
@ -120,7 +121,7 @@ mvn clean compile
Run validation with arguments:
<source>
mvn exec:java -Dexec.mainClass="com.puppycrawl.tools.checkstyle.Main" \
-Dexec.args="-c sun_checks.xml -r src/main/java "
-Dexec.args="-c /sun_checks.xml -r src/main/java "
</source>
Run UI application for file :
<source>