Browse Source

Move all report config into etc/.

This was previously all under checkstyle/ which is weird as there's
a whole bunch of non-checkstyle stuff. Move everything into the nice
etc/ folder to keep it out of the way and sanely organised.

Change-Id: I0df52e8eddc6588c775a5173b624144807f1e59a
Reviewed-on: http://gerrit.dmdirc.com/3102
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
tags/0.8rc1
Chris Smith 10 years ago
parent
commit
1adc13ce67

+ 1
- 0
.gitignore View File

@@ -34,6 +34,7 @@ __history
34 34
 /reports/checkstyle.*
35 35
 /reports/deadcode.txt
36 36
 /etc/clover.license
37
+/etc/clover/clover.license
37 38
 /.clover
38 39
 /test_profile
39 40
 /*.key

+ 9
- 10
build-reports.xml View File

@@ -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">

+ 3
- 3
build-tests.xml View File

@@ -5,13 +5,13 @@
5 5
     <target name="-init-clover" depends="-init-dependencies">
6 6
         <taskdef resource="cloverlib.xml" classpathref="test-classpath"/>
7 7
         <taskdef resource="cloverjunitlib.xml" classpathref="test-classpath"/>
8
-        <property name="clover.license.path" location="etc/clover.license"/>
8
+        <property name="clover.license.path" location="etc/clover/clover.license"/>
9 9
         <property name="clover.init.string" location=".clover/clover.db"/>
10 10
 
11 11
         <condition property="clover.installed">
12 12
             <and>
13 13
                 <available classname="com.atlassian.clover.CloverInstr"/>
14
-                <available file="etc/clover.license"/>
14
+                <available file="etc/clover/clover.license"/>
15 15
             </and>
16 16
         </condition>
17 17
 
@@ -94,7 +94,7 @@
94 94
             description="Run tests and generate Clover XML and HTML reports."/>
95 95
 
96 96
     <target name="teamcity-clover-report">
97
-        <xslt in="reports/clover/clover.xml" style="checkstyle/clover.xsl" out="teamcity-info.xml" />
97
+        <xslt in="reports/clover/clover.xml" style="etc/clover/clover.xsl" out="teamcity-info.xml" />
98 98
     </target>
99 99
 
100 100
 </project>

+ 3
- 3
build.xml View File

@@ -20,7 +20,7 @@
20 20
         <echo>Downloading private files, if this fails please pass username and</echo>
21 21
         <echo>password to ant using -Dusername=... -Dpassword=...</echo>
22 22
 
23
-        <get src="http://www.dmdirc.com/private/clover.license" dest="etc/clover.license" username="${username}" password="${password}"/>
23
+        <get src="http://www.dmdirc.com/private/clover.license" dest="etc/clover/clover.license" username="${username}" password="${password}"/>
24 24
 
25 25
         <get dest="installer/signing/" username="${username}" password="${password}">
26 26
             <url url="http://www.dmdirc.com/private/DMDirc.cer"/>
@@ -33,8 +33,8 @@
33 33
         <!-- Re-evaluate as the license is probably here now -->
34 34
         <condition property="clover.installed">
35 35
             <and>
36
-                <available classname="com.cenqua.clover.CloverInstr"/>
37
-                <available file="etc/clover.license"/>
36
+                <available classname="com.atlassian.clover.CloverInstr"/>
37
+                <available file="etc/clover/clover.license"/>
38 38
             </and>
39 39
         </condition>
40 40
     </target>

+ 0
- 50
checkstyle/index.html View File

@@ -1,50 +0,0 @@
1
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
-<html>
3
- <head>
4
-  <title>DMDirc</title>
5
-  <link rel="stylesheet" type="text/css" href="/res/style.css">
6
- </head>
7
- <body>
8
-  <div id="container">
9
-   <img id="logo" src="/res/logo.png" alt="DMDirc logo">
10
-   <h1>DMDirc</h1>
11
-   <ul id="menu">
12
-    <li><a href="/">Main Site</a></li>
13
-   </ul>
14
-   <div id="content">
15
-
16
-    <h1>DMDirc reports</h1>
17
-    <h2>Findbugs report</h2>
18
-    <ul>
19
-      <li><a href="report-fb.html" title="Findbugs report">Findbugs Report</a></li>
20
-    </ul>
21
-
22
-    <h2>Copy and paste detection report</h2>
23
-    <ul>
24
-      <li><a href="report-cpd.html" title="CPD Report">CPD Report</a></li>
25
-    </ul>
26
-
27
-    <h2>PMD Report</h2>
28
-    <ul>
29
-      <li><a href="report-pmd.html" title="PMD Report">PMD Report</a></li>
30
-    </ul>
31
-
32
-    <h2>Checkstyle reports</h2>
33
-    <ul>
34
-      <li><a href="report-all.html" title="Whole project">Whole project</a></li>
35
-      <li><a href="report-actions.html" title="Actions">Actions</a></li>
36
-      <li><a href="report-commandparser.html" title="Command Parser">Command Parser</a></li>
37
-      <li><a href="report-core.html" title="Core">Core</a></li>
38
-      <li><a href="report-config.html" title="Config">Config</a></li>
39
-      <li><a href="report-logger.html" title="Logger">Logger</a></li>
40
-      <li><a href="report-parser.html" title="Parser">Parser</a></li>
41
-      <li><a href="report-plugins.html" title="Plugins">Plugins</a></li>
42
-      <li><a href="report-ui.html" title="UI">UI</a></li>
43
-    </ul>
44
-
45
-   </div>
46
-   <div id="footer">
47
-   </div>
48
-  </div>
49
- </body>
50
-</html>

checkstyle/checkstyle.xsl → etc/checkstyle/checkstyle.xsl View File


checkstyle/dmdirc.license → etc/checkstyle/dmdirc.license View File


checkstyle/dmdirc_checks.xml → etc/checkstyle/dmdirc.xml View File

@@ -16,7 +16,7 @@
16 16
     <module name="NewlineAtEndOfFile"/>
17 17
 
18 18
     <module name="Header">
19
-        <property name="headerFile" value="checkstyle/dmdirc.license"/>
19
+        <property name="headerFile" value="etc/checkstyle/dmdirc.license"/>
20 20
         <property name="ignoreLines" value="2, 21"/>
21 21
     </module>
22 22
 

checkstyle/clover.xsl → etc/clover/clover.xsl View File


checkstyle/cpd.xslt → etc/cpd/cpd.xslt View File


checkstyle/findbugs.xslt → etc/findbugs/findbugs.xslt View File


checkstyle/pmd_checks.xml → etc/pmd/full.xml View File


checkstyle/pmd_minimal.xml → etc/pmd/minimal.xml View File


checkstyle/pmd.xslt → etc/pmd/pmd.xslt View File


checkstyle/sorttable.js → etc/reports/sorttable.js View File


Loading…
Cancel
Save