1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
diff -ru jabref-1.8/build.xml jabref-1.8-patched/build.xml
--- jabref-1.8/build.xml 2005-07-26 19:53:09.000000000 -0400
+++ jabref-1.8-patched/build.xml 2005-08-10 08:27:04.000000000 -0400
@@ -117,15 +117,7 @@
<javac debug="on" deprecation="on" destdir="${build.classes}" source="1.4" target="1.4">
<src path="${java.dir}"/>
<exclude name="tests/**"/>
- <classpath>
- <pathelement path="${build.classes}" />
- <!--<pathelement location="${library.directory}/commons-httpclient-2.0.jar" />
- <pathelement location="${library.directory}/commons-logging.jar" />-->
- <pathelement location="${library.directory}/antlr.jar" />
- <pathelement location="${library.directory}/looks-1.2.2.jar" />
- <pathelement location="${library.directory}/forms-1.0.4.jar" />
- <pathelement location="${library.directory}/spin.jar" />
- </classpath>
+ <classpath refid="classpath"/>
</javac>
</target>
@@ -134,14 +126,7 @@
<mkdir dir="${build.classes}" />
<!--deprecation="on"-->
<javac srcdir="${java.dir}/tests" debug="off" destdir="${build.classes}" source="1.4" target="1.4">
- <classpath>
- <pathelement path="${build.classes}" />
- <!--<pathelement location="${library.directory}/commons-httpclient-2.0.jar" />
- <pathelement location="${library.directory}/commons-logging.jar" />-->
- <pathelement location="${library.directory}/antlr.jar" />
- <pathelement location="${library.directory}/looks-1.2.2.jar" />
- <pathelement location="${library.directory}/spin.jar" />
- </classpath>
+ <classpath refid="classpath"/>
</javac>
</target>
@@ -309,12 +294,7 @@
<target name="pmd" description="SOFTWAREDESIGN: Project Mess Detector !;-)">
<echo>Checking Project Mess Detection (PMD) rulesets.</echo>
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask">
- <classpath>
- <pathelement path="${classpath}" />
- <fileset dir="${library.directory}">
- <include name="*.jar" />
- </fileset>
- </classpath>
+ <classpath refid="classpath"/>
</taskdef>
<!-- allowed Pretty Much Done rulsets -->
<!-- rulesets/basic.xml -->
@@ -345,12 +325,7 @@
<echo>WARNING: use environment variable: ANT_OPTS=-Xmx512m or this task will fail.</echo>
<echo>Checking for duplicated code using the Copy/Paste Detector (CPD).</echo>
<taskdef name="cpd" classname="net.sourceforge.pmd.cpd.CPDTask">
- <classpath>
- <pathelement path="${classpath}" />
- <fileset dir="${library.directory}">
- <include name="*.jar" />
- </fileset>
- </classpath>
+ <classpath refid="classpath"/>
</taskdef>
<cpd format="text" minimumTokenCount="100" outputFile="${build.dir}/duplicated_code_report.txt">
<fileset dir="${src.dir}">
@@ -362,12 +337,7 @@
<target name="javancss" description="SOFTWAREDESIGN: Determining the NCSS and CCN code metrics for JOELib.">
<taskdef name="javancss" classname="javancss.JavancssAntTask">
- <classpath>
- <pathelement path="${classpath}" />
- <fileset dir="${library.directory}">
- <include name="*.jar" />
- </fileset>
- </classpath>
+ <classpath refid="classpath"/>
</taskdef>
<echo>Cyclomatic
Complexity Ease of Risk
@@ -385,12 +355,7 @@
<target name="jalopy" description="SOFTWAREDESIGN: source code formatter using the JOELib convention.">
<taskdef name="jalopy" classname="de.hunsicker.jalopy.plugin.ant.AntPlugin">
- <classpath>
- <pathelement path="${classpath}" />
- <fileset dir="${library.directory}">
- <include name="*.jar" />
- </fileset>
- </classpath>
+ <classpath refid="classpath"/>
</taskdef>
<jalopy fileformat="unix" convention="${src.dir}/java/jalopy.format.convention.xml" history="file" historymethod="adler32" loglevel="error" threads="2" classpathref="classpath" backup="bak">
<fileset dir="${src.dir}">
@@ -408,15 +373,7 @@
</fileset>
</batchtest>
- <classpath>
- <pathelement location="${build.lib}/jabref.jar" />
- <!--<pathelement location="${library.directory}/commons-httpclient-2.0.jar" />
- <pathelement location="${library.directory}/commons-logging.jar" />-->
- <pathelement location="${library.directory}/antlr.jar" />
- <pathelement location="${library.directory}/looks-1.2.2.jar" />
- <pathelement location="${library.directory}/looks-1.2.2.jar" />
- <pathelement location="${library.directory}/spin.jar" />
- </classpath>
+ <classpath refid="classpath"/>
<!--<test name="tests.net.sf.jabref.export.layout.format.AuthorLastFirstAbbreviatorTester"/>-->
</junit>
|