|
@@ -1,6 +1,6 @@
|
1
|
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
2
|
<project name="DMDirc-reports" default="default" basedir=".">
|
3
|
|
- <description>Checkstyle, findbugs, CPD and PMD reports</description>
|
|
3
|
+ <description>Checkstyle and findbugs reports</description>
|
4
|
4
|
|
5
|
5
|
<target name="doallreports" depends="test-both,-allreports,javadoc"
|
6
|
6
|
description="Run all reports." />
|
|
@@ -9,21 +9,13 @@
|
9
|
9
|
|
10
|
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, checkstyle" />
|
|
13
|
+ <target name="-mostreports" depends="checkstyle" />
|
14
|
14
|
|
15
|
15
|
<target name="-init-checkstyle" depends="-init-dependencies">
|
16
|
16
|
<taskdef resource="checkstyletask.properties" classpathref="analyse-classpath"/>
|
17
|
17
|
</target>
|
18
|
18
|
|
19
|
|
- <target name="-init-pmd" depends="-init-dependencies">
|
20
|
|
- <taskdef name="pmd" classpathref="analyse-classpath" classname="net.sourceforge.pmd.ant.PMDTask" />
|
21
|
|
- </target>
|
22
|
|
-
|
23
|
|
- <target name="-init-cpd" depends="-init-dependencies">
|
24
|
|
- <taskdef name="cpd" classpathref="analyse-classpath" classname="net.sourceforge.pmd.cpd.CPDTask" />
|
25
|
|
- </target>
|
26
|
|
-
|
27
|
19
|
<target name="-init-findbugs" depends="-init-dependencies">
|
28
|
20
|
<taskdef name="findbugs" classpathref="analyse-classpath" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" />
|
29
|
21
|
</target>
|
|
@@ -42,37 +34,6 @@
|
42
|
34
|
<copy file="etc/reports/sorttable.js" tofile="reports/sorttable.js"/>
|
43
|
35
|
</target>
|
44
|
36
|
|
45
|
|
- <target name="pmd" description="Run PMD." depends="-init-pmd">
|
46
|
|
- <pmd shortFilenames="true">
|
47
|
|
- <ruleset>etc/pmd/full.xml</ruleset>
|
48
|
|
- <formatter type="xml" toFile="reports/report-pmd.xml" linkPrefix="http://pmd.sourceforge.net/xref/"/>
|
49
|
|
- <fileset dir="src/" includes="com/dmdirc/**/*.java" />
|
50
|
|
- <fileset dir="modules/util/src/" includes="com/dmdirc/**/*.java"/>
|
51
|
|
- <fileset dir="modules/parser/src/" includes="com/dmdirc/**/*.java"/>
|
52
|
|
- </pmd>
|
53
|
|
- <xslt in="reports/report-pmd.xml" style="etc/pmd/pmd.xslt" out="reports/report-pmd.html" />
|
54
|
|
- </target>
|
55
|
|
-
|
56
|
|
- <target name="pmd-minimal" description="Run PMD with minimal ruleset." depends="-init-pmd">
|
57
|
|
- <pmd shortFilenames="true">
|
58
|
|
- <ruleset>etc/pmd/minimal.xml</ruleset>
|
59
|
|
- <formatter type="xml" toFile="reports/report-pmd.xml" linkPrefix="http://pmd.sourceforge.net/xref/"/>
|
60
|
|
- <fileset dir="src/" includes="com/dmdirc/**/*.java" />
|
61
|
|
- <fileset dir="modules/util/src/" includes="com/dmdirc/**/*.java"/>
|
62
|
|
- <fileset dir="modules/parser/src/" includes="com/dmdirc/**/*.java"/>
|
63
|
|
- </pmd>
|
64
|
|
- <xslt in="reports/report-pmd.xml" style="etc/pmd/pmd.xslt" out="reports/report-pmd.html" />
|
65
|
|
- </target>
|
66
|
|
-
|
67
|
|
- <target name="cpd" description="Run CPD." depends="-init-cpd">
|
68
|
|
- <cpd format="xml" minimumTokenCount="50" outputFile="reports/report-cpd.xml">
|
69
|
|
- <fileset dir="src/com/">
|
70
|
|
- <include name="**/*.java"/>
|
71
|
|
- </fileset>
|
72
|
|
- </cpd>
|
73
|
|
- <xslt in="reports/report-cpd.xml" style="etc/cpd/cpd.xslt" out="reports/report-cpd.html" />
|
74
|
|
- </target>
|
75
|
|
-
|
76
|
37
|
<target name="findbugs" depends="-init-findbugs,jar" description="Run Findbugs.">
|
77
|
38
|
<mkdir dir="reports/findbugs" />
|
78
|
39
|
<findbugs home="/usr/share/java/findbugs/" effort="max"
|