- Did a clean/install of checkstyle before my change
cd ~/projects/git/checkstyle
git checkout c0a664c25194ef7be3b59ce200a9fcd88fbc5c2d
mvn clean install
- Cloned checkstyle-contribution and cd'ed
cd ~/projects/git/checkstyle-contribution/
- Uncommented all projects in projects-to-test-on.properties
- Updated my_check.xml to look like:
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name = "Checker">
<property name="charset" value="UTF-8"/>
<!-- do not change severity to 'error', as that will hide errors caused by exceptions -->
<property name="severity" value="warning"/>
<module name="TreeWalker">
<module name="OneStatementPerLineCheck"/>
</module>
</module>
- Ran
laucher.sh
. Had to modify it slightly to usegsed
./launch.sh -Dcheckstyle.config.location=my_check.xml
-
Copied over target site
cp -R ./target/site ./site_main
-
Repeated the process for after the change
cd ~/projects/git/checkstyle
git checkout 81a55cac409bb8424f4bccc8e0e2b44792ded327
mvn clean install
# ...
`cp -R ./target/site ./site_fork`
- Cloned ashm and compiled the source
cd ~/projects/git/ahsm
javac -cp ~/.m2/repository/org/jsoup/jsoup/1.8.3/jsoup-1.8.3.jar -sourcepath ./src/ src/attatrol/ahsm/Main.java
# Tried to generate the diff and received the error `Failed to find xref java.lang.IllegalArgumentException: Failed to locate essentual files that belong to the site: /Users/jonmbake/git/checkstyle-contribution/checkstyle-tester/site_main`
java -cp ~/.m2/repository/org/jsoup/jsoup/1.8.3/jsoup-1.8.3.jar:./src/ attatrol/ahsm/Main checkstyle ~/git/checkstyle-contribution/checkstyle-tester/site_main/ ~/git/checkstyle-contribution/checkstyle-tester/site_forked
- The script appears to be failing b/c there are missing files in
xref
> ls ~/git/checkstyle-contribution/checkstyle-tester/site_forked/xref/
Hbase apache-ant file.txt guava-mvnstyle java-design-patterns spring-framework
MaterialDesignLibrary checkstyle findbugs hibernate-orm lombok-ast stylesheet.css
Orekit checkstyle-with-excludes findbugs-with-excldues hibernate-orm-with-excludes openjdk
RxJava elasticsearch guava infinispan pmd