Skip to content

Commit 9f9e1a4

Browse files
committed
Use junit.version rather than hard-coded number; download from Maven Central
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1178269 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8af6781 commit 9f9e1a4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

build.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
<!-- Construct compile classpath -->
108108
<path id="downloaded.lib.classpath">
109-
<pathelement location="${download.lib.dir}/junit.jar"/>
109+
<pathelement location="${download.lib.dir}/junit-${junit.version}.jar"/>
110110
</path>
111111

112112
<!-- ========== Test Execution Defaults =================================== -->
@@ -335,9 +335,10 @@
335335
<target name="download-junit" unless="junit.found">
336336
<echo message="Downloading junit..."/>
337337
<mkdir dir="${download.lib.dir}" />
338-
<get dest="${download.lib.dir}/junit.jar"
338+
<!-- TODO check hash of jar -->
339+
<get dest="${download.lib.dir}"
339340
usetimestamp="true" ignoreerrors="true"
340-
src="https://github.com/downloads/KentBeck/junit/junit-4.10.jar"/>
341+
src="http://repo1.maven.org/maven2/junit/junit/${junit.version}/junit-${junit.version}.jar"/>
341342
</target>
342343

343344
</project>

0 commit comments

Comments
 (0)