|
@@ -29,43 +29,42 @@
|
29
|
29
|
</target>
|
30
|
30
|
|
31
|
31
|
<target name="checkstyle-all" depends="-init-checkstyle">
|
32
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure" failOnViolation="false">
|
|
32
|
+ <checkstyle config="etc/checkstyle/dmdirc.xml" failureProperty="checkstyle.failure" failOnViolation="false">
|
33
|
33
|
<fileset dir="src/" includes="**/*.java" excludes="net/miginfocom/**"/>
|
34
|
34
|
<fileset dir="modules/plugins/src/" includes="**/*.java"/>
|
35
|
35
|
<fileset dir="modules/parser/src/" includes="**/*.java"/>
|
36
|
36
|
<fileset dir="modules/util/src/" includes="**/*.java"/>
|
37
|
37
|
<formatter type="xml" tofile="reports/checkstyle.xml"/>
|
38
|
38
|
</checkstyle>
|
39
|
|
- <xslt in="reports/checkstyle.xml" out="reports/checkstyle.html" style="checkstyle/checkstyle.xsl"/>
|
|
39
|
+ <xslt in="reports/checkstyle.xml" out="reports/checkstyle.html" style="etc/checkstyle/checkstyle.xsl"/>
|
40
|
40
|
</target>
|
41
|
41
|
|
42
|
42
|
<target name="-move-index">
|
43
|
|
- <!-- <copy file="checkstyle/index.html" tofile="reports/index.html"/> -->
|
44
|
|
- <copy file="checkstyle/sorttable.js" tofile="reports/sorttable.js"/>
|
|
43
|
+ <copy file="etc/reports/sorttable.js" tofile="reports/sorttable.js"/>
|
45
|
44
|
</target>
|
46
|
45
|
|
47
|
46
|
<target name="pmd" description="Run PMD." depends="-init-pmd">
|
48
|
47
|
<pmd shortFilenames="true">
|
49
|
|
- <ruleset>checkstyle/pmd_checks.xml</ruleset>
|
|
48
|
+ <ruleset>etc/pmd/full.xml</ruleset>
|
50
|
49
|
<formatter type="xml" toFile="reports/report-pmd.xml" linkPrefix="http://pmd.sourceforge.net/xref/"/>
|
51
|
50
|
<fileset dir="src/" includes="com/dmdirc/**/*.java" />
|
52
|
51
|
<fileset dir="modules/plugins/src/" includes="com/dmdirc/**/*.java"/>
|
53
|
52
|
<fileset dir="modules/util/src/" includes="com/dmdirc/**/*.java"/>
|
54
|
53
|
<fileset dir="modules/parser/src/" includes="com/dmdirc/**/*.java"/>
|
55
|
54
|
</pmd>
|
56
|
|
- <xslt in="reports/report-pmd.xml" style="checkstyle/pmd.xslt" out="reports/report-pmd.html" />
|
|
55
|
+ <xslt in="reports/report-pmd.xml" style="etc/pmd/pmd.xslt" out="reports/report-pmd.html" />
|
57
|
56
|
</target>
|
58
|
57
|
|
59
|
58
|
<target name="pmd-minimal" description="Run PMD with minimal ruleset." depends="-init-pmd">
|
60
|
59
|
<pmd shortFilenames="true">
|
61
|
|
- <ruleset>checkstyle/pmd_minimal.xml</ruleset>
|
|
60
|
+ <ruleset>etc/pmd/minimal.xml</ruleset>
|
62
|
61
|
<formatter type="xml" toFile="reports/report-pmd.xml" linkPrefix="http://pmd.sourceforge.net/xref/"/>
|
63
|
62
|
<fileset dir="src/" includes="com/dmdirc/**/*.java" />
|
64
|
63
|
<fileset dir="modules/plugins/src/" includes="com/dmdirc/**/*.java"/>
|
65
|
64
|
<fileset dir="modules/util/src/" includes="com/dmdirc/**/*.java"/>
|
66
|
65
|
<fileset dir="modules/parser/src/" includes="com/dmdirc/**/*.java"/>
|
67
|
66
|
</pmd>
|
68
|
|
- <xslt in="reports/report-pmd.xml" style="checkstyle/pmd.xslt" out="reports/report-pmd.html" />
|
|
67
|
+ <xslt in="reports/report-pmd.xml" style="etc/pmd/pmd.xslt" out="reports/report-pmd.html" />
|
69
|
68
|
</target>
|
70
|
69
|
|
71
|
70
|
<target name="cpd" description="Run CPD." depends="-init-cpd">
|
|
@@ -74,7 +73,7 @@
|
74
|
73
|
<include name="**/*.java"/>
|
75
|
74
|
</fileset>
|
76
|
75
|
</cpd>
|
77
|
|
- <xslt in="reports/report-cpd.xml" style="checkstyle/cpd.xslt" out="reports/report-cpd.html" />
|
|
76
|
+ <xslt in="reports/report-cpd.xml" style="etc/cpd/cpd.xslt" out="reports/report-cpd.html" />
|
78
|
77
|
</target>
|
79
|
78
|
|
80
|
79
|
<target name="findbugs" depends="-init-findbugs,jar" description="Run Findbugs.">
|
|
@@ -86,7 +85,7 @@
|
86
|
85
|
<sourcePath path="src/" />
|
87
|
86
|
<class location="dist/DMDirc.jar" />
|
88
|
87
|
</findbugs>
|
89
|
|
- <xslt in="reports/findbugs/report-fb.xml" style="checkstyle/findbugs.xslt" out="reports/report-fb.html" />
|
|
88
|
+ <xslt in="reports/findbugs/report-fb.xml" style="etc/findbugs/findbugs.xslt" out="reports/report-fb.html" />
|
90
|
89
|
</target>
|
91
|
90
|
|
92
|
91
|
<target name="-init-proguard" depends="-init-dependencies">
|