|
@@ -7,10 +7,10 @@
|
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, -move-index" description="Run checkstyle." />
|
|
10
|
+ <target name="checkstyle" depends="checkstyle-all, -move-index" description="Run checkstyle." />
|
11
|
11
|
|
12
|
|
- <target name="-allreports" depends="findbugs, cpd, pmd, checkstyle" />
|
13
|
|
- <target name="-mostreports" depends="cpd, pmd, checkstyle" />
|
|
12
|
+ <target name="-allreports" depends="findbugs, cpd, pmd, checkstyle" />
|
|
13
|
+ <target name="-mostreports" depends="cpd, pmd, checkstyle" />
|
14
|
14
|
|
15
|
15
|
<target name="-init-checkstyle" depends="-init-dependencies">
|
16
|
16
|
<taskdef resource="checkstyletask.properties" classpathref="analyse-classpath"/>
|
|
@@ -27,7 +27,7 @@
|
27
|
27
|
<target name="-init-findbugs" depends="-init-dependencies">
|
28
|
28
|
<taskdef name="findbugs" classpathref="analyse-classpath" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" />
|
29
|
29
|
</target>
|
30
|
|
-
|
|
30
|
+
|
31
|
31
|
<target name="checkstyle-all" depends="-init-checkstyle">
|
32
|
32
|
<checkstyle config="etc/checkstyle/dmdirc.xml" failureProperty="checkstyle.failure" failOnViolation="false">
|
33
|
33
|
<fileset dir="src/" includes="**/*.java" excludes="net/miginfocom/**"/>
|
|
@@ -38,11 +38,11 @@
|
38
|
38
|
</checkstyle>
|
39
|
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
|
43
|
<copy file="etc/reports/sorttable.js" tofile="reports/sorttable.js"/>
|
44
|
44
|
</target>
|
45
|
|
-
|
|
45
|
+
|
46
|
46
|
<target name="pmd" description="Run PMD." depends="-init-pmd">
|
47
|
47
|
<pmd shortFilenames="true">
|
48
|
48
|
<ruleset>etc/pmd/full.xml</ruleset>
|
|
@@ -75,7 +75,7 @@
|
75
|
75
|
</cpd>
|
76
|
76
|
<xslt in="reports/report-cpd.xml" style="etc/cpd/cpd.xslt" out="reports/report-cpd.html" />
|
77
|
77
|
</target>
|
78
|
|
-
|
|
78
|
+
|
79
|
79
|
<target name="findbugs" depends="-init-findbugs,jar" description="Run Findbugs.">
|
80
|
80
|
<mkdir dir="reports/findbugs" />
|
81
|
81
|
<findbugs home="/usr/share/java/findbugs/" effort="max"
|
|
@@ -266,4 +266,14 @@
|
266
|
266
|
</filterset>
|
267
|
267
|
</copy>
|
268
|
268
|
</target>
|
|
269
|
+
|
|
270
|
+ <target name="-init-tattletale">
|
|
271
|
+ <taskdef name="report"
|
|
272
|
+ classname="org.jboss.tattletale.ant.ReportTask"
|
|
273
|
+ classpathref="analyse-classpath"/>
|
|
274
|
+ </target>
|
|
275
|
+
|
|
276
|
+ <target name="tattletale" depends="-init-tattletale">
|
|
277
|
+ <report source="modules/plugins/dist/" destination="reports/tattletale/"/>
|
|
278
|
+ </target>
|
269
|
279
|
</project>
|