Skip to content

Commit 28ae506

Browse files
committed
Don't build jar for junit tests.
1 parent cce3033 commit 28ae506

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

ant/build.xml

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- An ANT build file for JCommon. -->
1+
!-- An ANT build file for JCommon. -->
22

33
<!-- Written by David Gilbert. -->
44
<!-- 24-Jan-2003 -->
@@ -135,29 +135,6 @@
135135

136136
</target>
137137

138-
<!-- Compile the JUnit test classes -->
139-
<target name="compile-junit-tests" depends="compile"
140-
description="Compile the JUnit tests for JCommon.">
141-
142-
<!-- create a temp build directory -->
143-
<mkdir dir="build"/>
144-
145-
<!-- compile the source -->
146-
<javac srcdir="src/test/java" destdir="${builddir}"
147-
deprecation="${build.deprecation}" debug="${build.debug}"
148-
optimize="${build.optimize}" target="${build.target}" source="${build.source}">
149-
<classpath refid="junit.classpath"/>
150-
</javac>
151-
152-
<!-- make the jar -->
153-
<jar jarfile="${junit-dir}/${jcommon-junit-jar-file}"
154-
basedir="build"/>
155-
156-
<!-- delete the temp directory -->
157-
<delete dir="build"/>
158-
159-
</target>
160-
161138
<!-- Generate the JCommon JavaDoc HTML pages -->
162139
<target name="javadoc" depends="initialise">
163140
<delete dir="javadoc"/>
@@ -208,10 +185,6 @@
208185
<!-- copy across maven xml files -->
209186
<copy file="pom.xml" tofile="distribution/pom.xml"/>
210187

211-
<!-- copy across junit test jar file -->
212-
<copy file="${junit-dir}/${jcommon-junit-jar-file}"
213-
tofile="distribution/${jcommon-junit-jar-file}"/>
214-
215188
<!-- copy across junit jar file -->
216189
<copy file="${junit-dir}/${junit-jar-file}" tofile="distribution/lib/junit.jar"/>
217190

@@ -234,7 +207,7 @@
234207
</target>
235208

236209
<!-- Make .zip distribution for JCommon -->
237-
<target name="zip" depends="compile-xml,compile-junit-tests">
210+
<target name="zip" depends="compile-xml">
238211

239212
<!-- make a temporary distribution directory -->
240213
<mkdir dir="distribution"/>
@@ -257,7 +230,7 @@
257230
</target>
258231

259232
<!-- Make .tar.gz distribution for JCommon -->
260-
<target name="targz" depends="compile-xml,compile-junit-tests">
233+
<target name="targz" depends="compile-xml">
261234

262235
<!-- make a temporary distribution directory -->
263236
<mkdir dir="distribution"/>
@@ -321,7 +294,7 @@
321294

322295
<!-- ALL -->
323296
<target name="all"
324-
depends="compile,compile-xml,compile-junit-tests,javadoc,zip,targz,maven-bundle"
297+
depends="compile,compile-xml,javadoc,zip,targz,maven-bundle"
325298
description="Compiles JCommon, builds the jar files, generates the Javadoc HTML pages and creates distribution files (.zip and .tar.gz).">
326299
</target>
327300

0 commit comments

Comments
 (0)