|
@@ -7,142 +7,26 @@
|
7
|
7
|
<target name="domostreports" depends="test-both,-mostreports,javadoc"
|
8
|
8
|
description="Run all reports except Findbugs." />
|
9
|
9
|
|
10
|
|
- <target name="checkstyle" depends="checkstyle-all, checkstyle-actions,
|
11
|
|
- checkstyle-core,
|
12
|
|
- checkstyle-commandparser,
|
13
|
|
- checkstyle-config, checkstyle-logger,
|
14
|
|
- checkstyle-parser, checkstyle-plugins,
|
15
|
|
- checkstyle-ui, -remove-xml-files,
|
16
|
|
- -move-index"
|
17
|
|
- description="Run checkstyle." />
|
|
10
|
+ <target name="checkstyle" depends="checkstyle-all, -move-index" description="Run checkstyle." />
|
18
|
11
|
|
19
|
12
|
<target name="-allreports" depends="findbugs, cpd, pmd, checkstyle" />
|
20
|
13
|
<target name="-mostreports" depends="cpd, pmd, checkstyle" />
|
21
|
|
-
|
22
|
|
- <target name="checkstyle-plugins">
|
23
|
|
- <taskdef resource="checkstyletask.properties"
|
24
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
25
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
26
|
|
- failOnViolation="false">
|
27
|
|
- <fileset dir="src/com/dmdirc/plugins/" includes="**/*.java"/>
|
28
|
|
- <formatter type="xml" tofile="reports/report-plugins.xml"/>
|
29
|
|
-
|
30
|
|
- </checkstyle>
|
31
|
|
- <xslt in="reports/report-plugins.xml" out="reports/report-plugins.html" style="checkstyle/checkstyle.xsl"/>
|
32
|
|
- </target>
|
33
|
|
-
|
34
|
|
- <target name="checkstyle-actions">
|
35
|
|
- <taskdef resource="checkstyletask.properties"
|
36
|
|
- classpath="checkstyle.jar"/>
|
37
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
38
|
|
- failOnViolation="false">
|
39
|
|
- <fileset dir="src/com/dmdirc/actions/" includes="**/*.java"/>
|
40
|
|
- <formatter type="xml" tofile="reports/report-actions.xml"/>
|
41
|
|
-
|
42
|
|
- </checkstyle>
|
43
|
|
- <xslt in="reports/report-actions.xml" out="reports/report-actions.html" style="checkstyle/checkstyle.xsl"/>
|
44
|
|
- </target>
|
45
|
|
-
|
46
|
|
- <target name="checkstyle-ui">
|
47
|
|
- <taskdef resource="checkstyletask.properties"
|
48
|
|
- classpath="checkstyle.jar"/>
|
49
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
50
|
|
- failOnViolation="false">
|
51
|
|
- <fileset dir="src/com/dmdirc/ui/" includes="**/*.java"/>
|
52
|
|
- <formatter type="xml" tofile="reports/report-ui.xml"/>
|
53
|
|
- </checkstyle>
|
54
|
|
-
|
55
|
|
- <xslt in="reports/report-ui.xml" out="reports/report-ui.html" style="checkstyle/checkstyle.xsl"/>
|
56
|
|
- </target>
|
57
|
|
-
|
58
|
|
- <target name="checkstyle-parser">
|
59
|
|
- <taskdef resource="checkstyletask.properties"
|
60
|
|
- classpath="checkstyle.jar"/>
|
61
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
62
|
|
- failOnViolation="false">
|
63
|
|
- <fileset dir="modules/parser/src/com/dmdirc/parser/irc/" includes="**/*.java"/>
|
64
|
|
- <formatter type="xml" tofile="reports/report-parser.xml"/>
|
65
|
|
- </checkstyle>
|
66
|
|
- <xslt in="reports/report-parser.xml" out="reports/report-parser.html" style="checkstyle/checkstyle.xsl"/>
|
67
|
|
-
|
68
|
|
- </target>
|
69
|
|
-
|
70
|
|
- <target name="checkstyle-addons">
|
71
|
|
- <taskdef resource="checkstyletask.properties"
|
72
|
|
- classpath="checkstyle.jar"/>
|
73
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
74
|
|
- failOnViolation="false">
|
75
|
|
- <fileset dir="modules/addons/src/com/dmdirc/addons/" includes="**/*.java"/>
|
76
|
|
- <formatter type="xml" tofile="reports/report-addons.xml"/>
|
77
|
|
- </checkstyle>
|
78
|
|
- <xslt in="reports/report-addons.xml" out="reports/report-addons.html" style="checkstyle/checkstyle.xsl"/>
|
79
|
14
|
|
|
15
|
+ <target name="-init-checkstyle">
|
|
16
|
+ <taskdef resource="checkstyletask.properties" classpath="lib/checkstyle-5.3-all.jar"/>
|
80
|
17
|
</target>
|
81
|
18
|
|
82
|
|
- <target name="checkstyle-logger">
|
83
|
|
- <taskdef resource="checkstyletask.properties"
|
84
|
|
- classpath="checkstyle.jar"/>
|
85
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
86
|
|
- failOnViolation="false">
|
87
|
|
- <fileset dir="src/com/dmdirc/logger/" includes="**/*.java"/>
|
88
|
|
- <formatter type="xml" tofile="reports/report-logger.xml"/>
|
|
19
|
+ <target name="checkstyle-all" depends="-init-checkstyle">
|
|
20
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure" failOnViolation="false">
|
|
21
|
+ <fileset dir="src/" includes="**/*.java" excludes="net/miginfocom/**"/>
|
|
22
|
+ <fileset dir="modules/plugins/src/" includes="**/*.java"/>
|
|
23
|
+ <fileset dir="modules/parser/src/" includes="**/*.java"/>
|
|
24
|
+ <fileset dir="modules/util/src/" includes="**/*.java"/>
|
|
25
|
+ <formatter type="xml" tofile="reports/checkstyle.xml"/>
|
89
|
26
|
</checkstyle>
|
90
|
|
- <xslt in="reports/report-logger.xml" out="reports/report-logger.html" style="checkstyle/checkstyle.xsl"/>
|
|
27
|
+ <xslt in="reports/checkstyle.xml" out="reports/checkstyle.html" style="checkstyle/checkstyle.xsl"/>
|
91
|
28
|
</target>
|
92
|
29
|
|
93
|
|
-
|
94
|
|
- <target name="checkstyle-config">
|
95
|
|
- <taskdef resource="checkstyletask.properties"
|
96
|
|
- classpath="checkstyle.jar"/>
|
97
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
98
|
|
- failOnViolation="false">
|
99
|
|
- <fileset dir="src/com/dmdirc/config/" includes="**/*.java"/>
|
100
|
|
- <formatter type="xml" tofile="reports/report-config.xml"/>
|
101
|
|
- </checkstyle>
|
102
|
|
- <xslt in="reports/report-config.xml" out="reports/report-config.html" style="checkstyle/checkstyle.xsl"/>
|
103
|
|
- </target>
|
104
|
|
-
|
105
|
|
- <target name="checkstyle-commandparser">
|
106
|
|
- <taskdef resource="checkstyletask.properties"
|
107
|
|
- classpath="checkstyle.jar"/>
|
108
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
109
|
|
- failOnViolation="false">
|
110
|
|
- <fileset dir="src/com/dmdirc/commandparser/" includes="**/*.java"/>
|
111
|
|
- <formatter type="xml" tofile="reports/report-commandparser.xml"/>
|
112
|
|
- </checkstyle>
|
113
|
|
- <xslt in="reports/report-commandparser.xml" out="reports/report-commandparser.html" style="checkstyle/checkstyle.xsl"/>
|
114
|
|
- </target>
|
115
|
|
-
|
116
|
|
- <target name="checkstyle-core">
|
117
|
|
- <taskdef resource="checkstyletask.properties"
|
118
|
|
- classpath="checkstyle.jar"/>
|
119
|
|
-
|
120
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
121
|
|
- failOnViolation="false">
|
122
|
|
- <fileset dir="src/com/dmdirc/" includes="*.java"/>
|
123
|
|
- <formatter type="xml" tofile="reports/report-core.xml"/>
|
124
|
|
- </checkstyle>
|
125
|
|
- <xslt in="reports/report-core.xml" out="reports/report-core.html" style="checkstyle/checkstyle.xsl"/>
|
126
|
|
- </target>
|
127
|
|
-
|
128
|
|
- <target name="checkstyle-all">
|
129
|
|
- <taskdef resource="checkstyletask.properties"
|
130
|
|
- classpath="checkstyle.jar"/>
|
131
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
132
|
|
- failOnViolation="false">
|
133
|
|
-
|
134
|
|
- <fileset dir="src/com/dmdirc/" includes="**/*.java"/>
|
135
|
|
- <formatter type="xml" tofile="reports/report-all.xml"/>
|
136
|
|
- </checkstyle>
|
137
|
|
- <xslt in="reports/report-all.xml" out="reports/report-all.html" style="checkstyle/checkstyle.xsl"/>
|
138
|
|
- </target>
|
139
|
|
-
|
140
|
|
- <target name="-remove-xml-files">
|
141
|
|
- <delete>
|
142
|
|
- <fileset dir="reports/" includes="*.xml"/>
|
143
|
|
- </delete>
|
144
|
|
- </target>
|
145
|
|
-
|
146
|
30
|
<target name="-move-index">
|
147
|
31
|
<!-- <copy file="checkstyle/index.html" tofile="reports/index.html"/> -->
|
148
|
32
|
<copy file="checkstyle/sorttable.js" tofile="reports/sorttable.js"/>
|