Skip to content

Commit 63620e7

Browse files
committed
Add new helper target to build.xml, add properties for emma.jar url and add 'skipexisting' for <get> tasks
1 parent bcb8708 commit 63620e7

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

build.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@
240240
</javadoc>
241241
</target>
242242

243+
<!--
244+
Compiles and tests all sources and then creates the distribution file
245+
-->
246+
<target name="all" depends="deepclean,compile-all,junit-all,dist">
247+
</target>
248+
243249
<target name="dist" depends="deepclean,jar,retrojar,copy-all,javadoc">
244250
<delete file="${dist.file}" />
245251
<zip destfile="${dist.file}">

testsrc/build.xml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@
99
<!--
1010
URL from which junit.jar can be retrieved
1111
-->
12-
<property name="test.junit.url" value="http://mirrors.ibiblio.org/pub/mirrors/maven2/junit/junit/4.5/junit-4.5.jar"/>
12+
<property name="test.junit.url" value="http://mirrors.ibiblio.org/pub/mirrors/maven2/junit/junit/4.10/junit-4.10.jar"/>
13+
14+
<!--
15+
URL from which emma.jar can be retrieved
16+
-->
17+
<property name="test.emma.url" value="http://mirrors.ibiblio.org/pub/mirrors/maven2/emma/emma/2.1.5320/emma-2.1.5320.jar"/>
18+
19+
<!--
20+
URL from which emma_ant.jar can be retrieved
21+
-->
22+
<property name="test.emma_ant.url" value="http://mirrors.ibiblio.org/pub/mirrors/maven2/emma/emma_ant/2.1.5320/emma_ant-2.1.5320.jar"/>
1323

1424
<!--
1525
Destination to which testing classes should be built
@@ -32,13 +42,13 @@
3242
<property name="test.vm.mx" value="256m" />
3343

3444
<target name="get-junit">
35-
<mkdir dir="lib"/>
36-
<get src="${test.junit.url}" dest="lib/junit.jar" usetimestamp="true"/>
45+
<mkdir dir="lib"/>
46+
<get src="${test.junit.url}" dest="lib/junit.jar" usetimestamp="true" skipexisting="true"/>
3747
</target>
3848

3949
<target name="junit-compile">
4050
<mkdir dir="${test.classes}" />
41-
<antcall target="get-junit"/>
51+
<antcall target="get-junit"/>
4252
<javac
4353
destdir="${test.classes}" debug="true"
4454
target="${target-jvm}"
@@ -86,8 +96,8 @@
8696
</target>
8797

8898
<target name="coverage-instrument">
89-
<get src="http://mirrors.ibiblio.org/pub/mirrors/maven2/emma/emma/2.0.5312/emma-2.0.5312.jar" dest="lib/emma.jar" usetimestamp="true"/>
90-
<get src="http://mirrors.ibiblio.org/pub/mirrors/maven2/emma/emma_ant/2.0.5312/emma_ant-2.0.5312.jar" dest="lib/emma_ant.jar" usetimestamp="true"/>
99+
<get src="${test.emma.url}" dest="lib/emma.jar" usetimestamp="true" skipexisting="true"/>
100+
<get src="${test.emma_ant.url}" dest="lib/emma_ant.jar" usetimestamp="true" skipexisting="true"/>
91101
<property name="coverage.dir" location="${build.dir}/coverage"/>
92102
<property name="coverage.classes.dir" location="${build.dir}/coverage/classes"/>
93103
<mkdir dir="${coverage.classes.dir}"/>

0 commit comments

Comments
 (0)