@@ -11,17 +11,17 @@ Just with `javac` and `jar`.
11
11
12
12
For the following steps, it is assumed, you are in that directory.
13
13
14
- 2 . Get the binary distribution of PMD from < https://github.com/pmd/pmd/releases > , e.g. pmd-dist-7.7 .0-bin.zip:
14
+ 2 . Get the binary distribution of PMD from < https://github.com/pmd/pmd/releases > , e.g. pmd-dist-7.10 .0-bin.zip:
15
15
16
- $ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.7 .0/pmd-dist-7.7 .0-bin.zip
16
+ $ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.10 .0/pmd-dist-7.10 .0-bin.zip
17
17
18
- 3 . Extract the zip file, e.g. ` unzip pmd-dist-7.7 .0-bin.zip `
18
+ 3 . Extract the zip file, e.g. ` unzip pmd-dist-7.10 .0-bin.zip `
19
19
20
- $ unzip pmd-dist-7.7 .0-bin.zip
20
+ $ unzip pmd-dist-7.10 .0-bin.zip
21
21
22
- 4 . Now, the pmd binaries are installed under ` ~/code/pmd-bin-7.7 .0 ` .
22
+ 4 . Now, the pmd binaries are installed under ` ~/code/pmd-bin-7.10 .0 ` .
23
23
24
- This also includes the libraries in ` ~/code/pmd-bin-7.7 .0/lib ` .
24
+ This also includes the libraries in ` ~/code/pmd-bin-7.10 .0/lib ` .
25
25
26
26
## Get the code from this example and build it
27
27
@@ -37,7 +37,7 @@ Just with `javac` and `jar`.
37
37
38
38
3 . Compile the sources, that are located in ` src ` , using the PMD libraries
39
39
40
- $ javac -d build -cp '../../../pmd-bin-7.7 .0/lib/*' src/*.java
40
+ $ javac -d build -cp '../../../pmd-bin-7.10 .0/lib/*' src/*.java
41
41
42
42
4 . Create a jar file
43
43
@@ -48,5 +48,5 @@ Just with `javac` and `jar`.
48
48
49
49
1 . Run PMD with the just created jar file on the classpath, e.g. on the folder ` testsrc `
50
50
51
- $ CLASSPATH=custom-rule-example.jar ../../pmd-bin-7.7 .0/bin/pmd check --no-cache -f text -d testsrc -R myrule.xml
51
+ $ CLASSPATH=custom-rule-example.jar ../../pmd-bin-7.10 .0/bin/pmd check --no-cache -f text -d testsrc -R myrule.xml
52
52
/home/andreas/code/pmd-examples/testsrc/Test.java:2: Avoid the identifier foo.
0 commit comments