|
@@ -1,180 +1,180 @@
|
1
|
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
2
|
<project name="DMDirc" default="default" basedir=".">
|
3
|
|
- <description>Builds, tests, and runs the project DMDirc.</description>
|
4
|
|
- <import file="nbproject/build-impl.xml"/>
|
5
|
|
- <target name="checkstyle" depends="
|
6
|
|
- checkstyle-all,
|
7
|
|
- checkstyle-actions,
|
8
|
|
- checkstyle-core,
|
9
|
|
- checkstyle-commandparser,
|
10
|
|
- checkstyle-config,
|
11
|
|
- checkstyle-logger,
|
12
|
|
- checkstyle-parser,
|
13
|
|
- checkstyle-plugins,
|
14
|
|
- checkstyle-ui,
|
15
|
|
- remove-xml-files, move-index" />
|
16
|
|
- <target name="allreports" depends="
|
17
|
|
- findbugs,
|
18
|
|
- cpd,
|
19
|
|
- pmd,
|
20
|
|
- checkstyle" />
|
21
|
|
- <target name="mostreports" depends="
|
22
|
|
- cpd,
|
23
|
|
- pmd,
|
24
|
|
- checkstyle" />
|
25
|
|
-
|
26
|
|
- <target name="checkstyle-plugins">
|
27
|
|
- <taskdef resource="checkstyletask.properties"
|
28
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
29
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
30
|
|
- failOnViolation="false">
|
31
|
|
- <fileset dir="src/com/dmdirc/plugins/" includes="**/*.java"/>
|
32
|
|
- <formatter type="xml" tofile="reports/report-plugins.xml"/>
|
33
|
|
-
|
34
|
|
- </checkstyle>
|
35
|
|
- <xslt in="reports/report-plugins.xml" out="reports/report-plugins.html" style="checkstyle/checkstyle.xsl"/>
|
36
|
|
- </target>
|
37
|
|
-
|
38
|
|
- <target name="checkstyle-actions">
|
39
|
|
- <taskdef resource="checkstyletask.properties"
|
40
|
|
- classpath="checkstyle.jar"/>
|
41
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
42
|
|
- failOnViolation="false">
|
43
|
|
- <fileset dir="src/com/dmdirc/actions/" includes="**/*.java"/>
|
44
|
|
- <formatter type="xml" tofile="reports/report-actions.xml"/>
|
45
|
|
-
|
46
|
|
- </checkstyle>
|
47
|
|
- <xslt in="reports/report-actions.xml" out="reports/report-actions.html" style="checkstyle/checkstyle.xsl"/>
|
48
|
|
- </target>
|
49
|
|
-
|
50
|
|
- <target name="checkstyle-ui">
|
51
|
|
- <taskdef resource="checkstyletask.properties"
|
52
|
|
- classpath="checkstyle.jar"/>
|
53
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
54
|
|
- failOnViolation="false">
|
55
|
|
- <fileset dir="src/com/dmdirc/ui/" includes="**/*.java"/>
|
56
|
|
- <formatter type="xml" tofile="reports/report-ui.xml"/>
|
57
|
|
- </checkstyle>
|
58
|
|
-
|
59
|
|
- <xslt in="reports/report-ui.xml" out="reports/report-ui.html" style="checkstyle/checkstyle.xsl"/>
|
60
|
|
- </target>
|
61
|
|
-
|
62
|
|
- <target name="checkstyle-parser">
|
63
|
|
- <taskdef resource="checkstyletask.properties"
|
64
|
|
- classpath="checkstyle.jar"/>
|
65
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
66
|
|
- failOnViolation="false">
|
67
|
|
- <fileset dir="src/com/dmdirc/parser/" includes="**/*.java"/>
|
68
|
|
- <formatter type="xml" tofile="reports/report-parser.xml"/>
|
69
|
|
- </checkstyle>
|
70
|
|
- <xslt in="reports/report-parser.xml" out="reports/report-parser.html" style="checkstyle/checkstyle.xsl"/>
|
71
|
|
-
|
72
|
|
- </target>
|
73
|
|
-
|
74
|
|
- <target name="checkstyle-logger">
|
75
|
|
- <taskdef resource="checkstyletask.properties"
|
76
|
|
- classpath="checkstyle.jar"/>
|
77
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
78
|
|
- failOnViolation="false">
|
79
|
|
- <fileset dir="src/com/dmdirc/logger/" includes="**/*.java"/>
|
80
|
|
- <formatter type="xml" tofile="reports/report-logger.xml"/>
|
81
|
|
- </checkstyle>
|
82
|
|
- <xslt in="reports/report-logger.xml" out="reports/report-logger.html" style="checkstyle/checkstyle.xsl"/>
|
83
|
|
- </target>
|
84
|
|
-
|
85
|
|
-
|
86
|
|
- <target name="checkstyle-config">
|
87
|
|
- <taskdef resource="checkstyletask.properties"
|
88
|
|
- classpath="checkstyle.jar"/>
|
89
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
90
|
|
- failOnViolation="false">
|
91
|
|
- <fileset dir="src/com/dmdirc/config/" includes="**/*.java"/>
|
92
|
|
- <formatter type="xml" tofile="reports/report-config.xml"/>
|
93
|
|
- </checkstyle>
|
94
|
|
- <xslt in="reports/report-config.xml" out="reports/report-config.html" style="checkstyle/checkstyle.xsl"/>
|
95
|
|
- </target>
|
96
|
|
-
|
97
|
|
- <target name="checkstyle-commandparser">
|
98
|
|
-
|
99
|
|
- <taskdef resource="checkstyletask.properties"
|
100
|
|
- classpath="checkstyle.jar"/>
|
101
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
102
|
|
- failOnViolation="false">
|
103
|
|
- <fileset dir="src/com/dmdirc/commandparser/" includes="**/*.java"/>
|
104
|
|
- <formatter type="xml" tofile="reports/report-commandparser.xml"/>
|
105
|
|
- </checkstyle>
|
106
|
|
- <xslt in="reports/report-commandparser.xml" out="reports/report-commandparser.html" style="checkstyle/checkstyle.xsl"/>
|
107
|
|
- </target>
|
108
|
|
-
|
109
|
|
- <target name="checkstyle-core">
|
110
|
|
- <taskdef resource="checkstyletask.properties"
|
111
|
|
- classpath="checkstyle.jar"/>
|
112
|
|
-
|
113
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
114
|
|
- failOnViolation="false">
|
115
|
|
- <fileset dir="src/com/dmdirc/" includes="*.java"/>
|
116
|
|
- <formatter type="xml" tofile="reports/report-core.xml"/>
|
117
|
|
- </checkstyle>
|
118
|
|
- <xslt in="reports/report-core.xml" out="reports/report-core.html" style="checkstyle/checkstyle.xsl"/>
|
119
|
|
- </target>
|
120
|
|
-
|
121
|
|
- <target name="checkstyle-all">
|
122
|
|
- <taskdef resource="checkstyletask.properties"
|
123
|
|
- classpath="checkstyle.jar"/>
|
124
|
|
- <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
125
|
|
- failOnViolation="false">
|
126
|
|
-
|
127
|
|
- <fileset dir="src/com/dmdirc/" includes="**/*.java"/>
|
128
|
|
- <formatter type="xml" tofile="reports/report-all.xml"/>
|
129
|
|
- </checkstyle>
|
130
|
|
- <xslt in="reports/report-all.xml" out="reports/report-all.html" style="checkstyle/checkstyle.xsl"/>
|
131
|
|
- </target>
|
132
|
|
-
|
133
|
|
- <target name="remove-xml-files">
|
134
|
|
- <delete>
|
135
|
|
- <fileset dir="reports/" includes="*.xml"/>
|
136
|
|
- </delete>
|
137
|
|
-
|
138
|
|
- </target>
|
139
|
|
- <target name="move-index">
|
140
|
|
- <!-- <copy file="checkstyle/index.html" tofile="reports/index.html"/> -->
|
141
|
|
- <copy file="checkstyle/sorttable.js" tofile="reports/sorttable.js"/>
|
142
|
|
- </target>
|
143
|
|
-
|
144
|
|
- <target name="pmd">
|
145
|
|
- <taskdef name="pmd" classpath="pmd-3.9.jar"
|
146
|
|
- classname="net.sourceforge.pmd.ant.PMDTask" />
|
147
|
|
- <pmd shortFilenames="true">
|
148
|
|
-
|
149
|
|
- <ruleset>checkstyle/pmd_checks.xml</ruleset>
|
150
|
|
- <formatter type="xml" toFile="reports/report-pmd.xml" linkPrefix="http://pmd.sourceforge.net/xref/"/>
|
151
|
|
- <fileset dir="src/com/" includes="**/*.java" />
|
152
|
|
- </pmd>
|
153
|
|
- <xslt in="reports/report-pmd.xml" style="checkstyle/pmd.xslt" out="reports/report-pmd.html" />
|
154
|
|
- </target>
|
155
|
|
-
|
156
|
|
- <target name="cpd">
|
157
|
|
- <taskdef name="cpd" classpath="pmd-3.9.jar" classname="net.sourceforge.pmd.cpd.CPDTask" />
|
158
|
|
-
|
159
|
|
- <cpd format="xml" minimumTokenCount="50" outputFile="reports/report-cpd.xml">
|
160
|
|
- <fileset dir="src/com/">
|
161
|
|
- <include name="**/*.java"/>
|
162
|
|
- </fileset>
|
163
|
|
- </cpd>
|
164
|
|
- <xslt in="reports/report-cpd.xml" style="checkstyle/cpd.xslt" out="reports/report-cpd.html" />
|
165
|
|
- </target>
|
166
|
|
-
|
167
|
|
- <target name="findbugs" depends="jar">
|
168
|
|
- <mkdir dir="reports/findbugs" />
|
169
|
|
- <taskdef name="findbugs" classpath="findbugs-ant.jar"
|
170
|
|
- classname="edu.umd.cs.findbugs.anttask.FindBugsTask" />
|
171
|
|
- <findbugs home="/usr/share/java/findbugs/" effort="max"
|
172
|
|
- jvmargs="-Xmx512M"
|
173
|
|
- output="xml:withMessages"
|
174
|
|
- outputFile="reports/findbugs/report-fb.xml" reportLevel="low">
|
175
|
|
- <sourcePath path="src/" />
|
176
|
|
- <class location="dist/DMDirc.jar" />
|
177
|
|
- </findbugs>
|
178
|
|
- <xslt in="reports/findbugs/report-fb.xml" style="checkstyle/findbugs.xslt" out="reports/report-fb.html" />
|
179
|
|
- </target>
|
|
3
|
+ <!--
|
|
4
|
+
|
|
5
|
+ THIS FILE IS DEPRECATED. THE TASKS HAVE BEEN INTEGRATED INTO THE MAIN
|
|
6
|
+ DMDIRC BUILD FILE. IT WILL BE REMOVED IN THE FUTURE. STOP USING IT.
|
|
7
|
+
|
|
8
|
+ -->
|
|
9
|
+
|
|
10
|
+ <description>Builds, tests, and runs the project DMDirc.</description>
|
|
11
|
+ <import file="nbproject/build-impl.xml"/>
|
|
12
|
+ <target name="checkstyle" depends="
|
|
13
|
+ checkstyle-all,
|
|
14
|
+ checkstyle-actions,
|
|
15
|
+ checkstyle-core,
|
|
16
|
+ checkstyle-commandparser,
|
|
17
|
+ checkstyle-config,
|
|
18
|
+ checkstyle-logger,
|
|
19
|
+ checkstyle-parser,
|
|
20
|
+ checkstyle-plugins,
|
|
21
|
+ checkstyle-ui,
|
|
22
|
+ remove-xml-files, move-index" />
|
|
23
|
+ <target name="allreports" depends="findbugs, cpd, pmd, checkstyle" />
|
|
24
|
+ <target name="mostreports" depends="cpd, pmd, checkstyle" />
|
|
25
|
+
|
|
26
|
+ <target name="checkstyle-plugins">
|
|
27
|
+ <taskdef resource="checkstyletask.properties"
|
|
28
|
+ classpath="checkstyle-all-4.3.jar"/>
|
|
29
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
30
|
+ failOnViolation="false">
|
|
31
|
+ <fileset dir="src/com/dmdirc/plugins/" includes="**/*.java"/>
|
|
32
|
+ <formatter type="xml" tofile="reports/report-plugins.xml"/>
|
|
33
|
+
|
|
34
|
+ </checkstyle>
|
|
35
|
+ <xslt in="reports/report-plugins.xml" out="reports/report-plugins.html" style="checkstyle/checkstyle.xsl"/>
|
|
36
|
+ </target>
|
|
37
|
+
|
|
38
|
+ <target name="checkstyle-actions">
|
|
39
|
+ <taskdef resource="checkstyletask.properties"
|
|
40
|
+ classpath="checkstyle.jar"/>
|
|
41
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
42
|
+ failOnViolation="false">
|
|
43
|
+ <fileset dir="src/com/dmdirc/actions/" includes="**/*.java"/>
|
|
44
|
+ <formatter type="xml" tofile="reports/report-actions.xml"/>
|
|
45
|
+
|
|
46
|
+ </checkstyle>
|
|
47
|
+ <xslt in="reports/report-actions.xml" out="reports/report-actions.html" style="checkstyle/checkstyle.xsl"/>
|
|
48
|
+ </target>
|
|
49
|
+
|
|
50
|
+ <target name="checkstyle-ui">
|
|
51
|
+ <taskdef resource="checkstyletask.properties"
|
|
52
|
+ classpath="checkstyle.jar"/>
|
|
53
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
54
|
+ failOnViolation="false">
|
|
55
|
+ <fileset dir="src/com/dmdirc/ui/" includes="**/*.java"/>
|
|
56
|
+ <formatter type="xml" tofile="reports/report-ui.xml"/>
|
|
57
|
+ </checkstyle>
|
|
58
|
+
|
|
59
|
+ <xslt in="reports/report-ui.xml" out="reports/report-ui.html" style="checkstyle/checkstyle.xsl"/>
|
|
60
|
+ </target>
|
|
61
|
+
|
|
62
|
+ <target name="checkstyle-parser">
|
|
63
|
+ <taskdef resource="checkstyletask.properties"
|
|
64
|
+ classpath="checkstyle.jar"/>
|
|
65
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
66
|
+ failOnViolation="false">
|
|
67
|
+ <fileset dir="src/com/dmdirc/parser/" includes="**/*.java"/>
|
|
68
|
+ <formatter type="xml" tofile="reports/report-parser.xml"/>
|
|
69
|
+ </checkstyle>
|
|
70
|
+ <xslt in="reports/report-parser.xml" out="reports/report-parser.html" style="checkstyle/checkstyle.xsl"/>
|
|
71
|
+
|
|
72
|
+ </target>
|
|
73
|
+
|
|
74
|
+ <target name="checkstyle-logger">
|
|
75
|
+ <taskdef resource="checkstyletask.properties"
|
|
76
|
+ classpath="checkstyle.jar"/>
|
|
77
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
78
|
+ failOnViolation="false">
|
|
79
|
+ <fileset dir="src/com/dmdirc/logger/" includes="**/*.java"/>
|
|
80
|
+ <formatter type="xml" tofile="reports/report-logger.xml"/>
|
|
81
|
+ </checkstyle>
|
|
82
|
+ <xslt in="reports/report-logger.xml" out="reports/report-logger.html" style="checkstyle/checkstyle.xsl"/>
|
|
83
|
+ </target>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+ <target name="checkstyle-config">
|
|
87
|
+ <taskdef resource="checkstyletask.properties"
|
|
88
|
+ classpath="checkstyle.jar"/>
|
|
89
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
90
|
+ failOnViolation="false">
|
|
91
|
+ <fileset dir="src/com/dmdirc/config/" includes="**/*.java"/>
|
|
92
|
+ <formatter type="xml" tofile="reports/report-config.xml"/>
|
|
93
|
+ </checkstyle>
|
|
94
|
+ <xslt in="reports/report-config.xml" out="reports/report-config.html" style="checkstyle/checkstyle.xsl"/>
|
|
95
|
+ </target>
|
|
96
|
+
|
|
97
|
+ <target name="checkstyle-commandparser">
|
|
98
|
+
|
|
99
|
+ <taskdef resource="checkstyletask.properties"
|
|
100
|
+ classpath="checkstyle.jar"/>
|
|
101
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
102
|
+ failOnViolation="false">
|
|
103
|
+ <fileset dir="src/com/dmdirc/commandparser/" includes="**/*.java"/>
|
|
104
|
+ <formatter type="xml" tofile="reports/report-commandparser.xml"/>
|
|
105
|
+ </checkstyle>
|
|
106
|
+ <xslt in="reports/report-commandparser.xml" out="reports/report-commandparser.html" style="checkstyle/checkstyle.xsl"/>
|
|
107
|
+ </target>
|
|
108
|
+
|
|
109
|
+ <target name="checkstyle-core">
|
|
110
|
+ <taskdef resource="checkstyletask.properties"
|
|
111
|
+ classpath="checkstyle.jar"/>
|
|
112
|
+
|
|
113
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
114
|
+ failOnViolation="false">
|
|
115
|
+ <fileset dir="src/com/dmdirc/" includes="*.java"/>
|
|
116
|
+ <formatter type="xml" tofile="reports/report-core.xml"/>
|
|
117
|
+ </checkstyle>
|
|
118
|
+ <xslt in="reports/report-core.xml" out="reports/report-core.html" style="checkstyle/checkstyle.xsl"/>
|
|
119
|
+ </target>
|
|
120
|
+
|
|
121
|
+ <target name="checkstyle-all">
|
|
122
|
+ <taskdef resource="checkstyletask.properties"
|
|
123
|
+ classpath="checkstyle.jar"/>
|
|
124
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
125
|
+ failOnViolation="false">
|
|
126
|
+
|
|
127
|
+ <fileset dir="src/com/dmdirc/" includes="**/*.java"/>
|
|
128
|
+ <formatter type="xml" tofile="reports/report-all.xml"/>
|
|
129
|
+ </checkstyle>
|
|
130
|
+ <xslt in="reports/report-all.xml" out="reports/report-all.html" style="checkstyle/checkstyle.xsl"/>
|
|
131
|
+ </target>
|
|
132
|
+
|
|
133
|
+ <target name="remove-xml-files">
|
|
134
|
+ <delete>
|
|
135
|
+ <fileset dir="reports/" includes="*.xml"/>
|
|
136
|
+ </delete>
|
|
137
|
+
|
|
138
|
+ </target>
|
|
139
|
+ <target name="move-index">
|
|
140
|
+ <!-- <copy file="checkstyle/index.html" tofile="reports/index.html"/> -->
|
|
141
|
+ <copy file="checkstyle/sorttable.js" tofile="reports/sorttable.js"/>
|
|
142
|
+ </target>
|
|
143
|
+
|
|
144
|
+ <target name="pmd">
|
|
145
|
+ <taskdef name="pmd" classpath="pmd-3.9.jar"
|
|
146
|
+ classname="net.sourceforge.pmd.ant.PMDTask" />
|
|
147
|
+ <pmd shortFilenames="true">
|
|
148
|
+
|
|
149
|
+ <ruleset>checkstyle/pmd_checks.xml</ruleset>
|
|
150
|
+ <formatter type="xml" toFile="reports/report-pmd.xml" linkPrefix="http://pmd.sourceforge.net/xref/"/>
|
|
151
|
+ <fileset dir="src/com/" includes="**/*.java" />
|
|
152
|
+ </pmd>
|
|
153
|
+ <xslt in="reports/report-pmd.xml" style="checkstyle/pmd.xslt" out="reports/report-pmd.html" />
|
|
154
|
+ </target>
|
|
155
|
+
|
|
156
|
+ <target name="cpd">
|
|
157
|
+ <taskdef name="cpd" classpath="pmd-3.9.jar" classname="net.sourceforge.pmd.cpd.CPDTask" />
|
|
158
|
+
|
|
159
|
+ <cpd format="xml" minimumTokenCount="50" outputFile="reports/report-cpd.xml">
|
|
160
|
+ <fileset dir="src/com/">
|
|
161
|
+ <include name="**/*.java"/>
|
|
162
|
+ </fileset>
|
|
163
|
+ </cpd>
|
|
164
|
+ <xslt in="reports/report-cpd.xml" style="checkstyle/cpd.xslt" out="reports/report-cpd.html" />
|
|
165
|
+ </target>
|
|
166
|
+
|
|
167
|
+ <target name="findbugs" depends="jar">
|
|
168
|
+ <mkdir dir="reports/findbugs" />
|
|
169
|
+ <taskdef name="findbugs" classpath="findbugs-ant.jar"
|
|
170
|
+ classname="edu.umd.cs.findbugs.anttask.FindBugsTask" />
|
|
171
|
+ <findbugs home="/usr/share/java/findbugs/" effort="max"
|
|
172
|
+ jvmargs="-Xmx512M"
|
|
173
|
+ output="xml:withMessages"
|
|
174
|
+ outputFile="reports/findbugs/report-fb.xml" reportLevel="low">
|
|
175
|
+ <sourcePath path="src/" />
|
|
176
|
+ <class location="dist/DMDirc.jar" />
|
|
177
|
+ </findbugs>
|
|
178
|
+ <xslt in="reports/findbugs/report-fb.xml" style="checkstyle/findbugs.xslt" out="reports/report-fb.html" />
|
|
179
|
+ </target>
|
180
|
180
|
</project>
|