build: download Maven local to build process

The 'abcl.ext.maven' target will download and unpack Maven binaries
under <file:ext/apache-maven-3.3.9/>.  This will be used to aquire a
version of Maven to be incoporated as part of the 'abcl-aio.jar' artifact.
parent cb70478c
...@@ -955,7 +955,12 @@ ${basedir}/../cl-bench ...@@ -955,7 +955,12 @@ ${basedir}/../cl-bench
<property name="junit.path" <property name="junit.path"
value="${abcl.ext.dir}/junit-4.8.1.jar"/> value="${abcl.ext.dir}/junit-4.8.1.jar"/>
<property name="maven.dist.name"
value="apache-maven-3.3.9-bin.zip"/>
<property name="maven.dist.uri"
value="http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/${maven.dist.name}"/>
<property name="maven.local.path"
value="${abcl.ext.dir}/${maven.dist.name}"/>
<path id="abcl.test.compile.classpath"> <path id="abcl.test.compile.classpath">
<pathelement location="${junit.path}"/> <pathelement location="${junit.path}"/>
...@@ -966,16 +971,32 @@ ${basedir}/../cl-bench ...@@ -966,16 +971,32 @@ ${basedir}/../cl-bench
<target name="abcl.ext.p"> <target name="abcl.ext.p">
<!--XXX generalize over enumeration of all contributions to <!--XXX generalize over enumeration of all contributions to
abcl.ext if we get more of them. --> abcl.ext if we get more of them. -->
<available file="${junit.path}" property="abcl.ext.p"/> <condition property="abcl.ext.p">
<and>
<available file="${junit.path}"/>
<available file="${maven.local.path}"/>
</and>
</condition>
</target> </target>
<target name="abcl.ext" depends="abcl.ext.p" unless="abcl.ext.p">
<target name="abcl.ext" depends="abcl.ext.p" unless="abcl.ext.p">
<mkdir dir="${abcl.ext.dir}"/> <mkdir dir="${abcl.ext.dir}"/>
<get <get
src="http://cloud.github.com/downloads/KentBeck/junit/junit-4.8.1.jar" src="http://cloud.github.com/downloads/KentBeck/junit/junit-4.8.1.jar"
usetimestamp="true" usetimestamp="true"
dest="${junit.path}"/> dest="${junit.path}"/>
<get
src="${maven.dist.uri}"
usetimestamp="true"
dest="${maven.local.path}"/>
</target>
<target name="abcl.ext.maven" depends="abcl.ext">
<echo>Installing Maven for ABCL from ${maven.dist.uri}.</echo>
<unzip src="${maven.local.path}"
dest="${abcl.ext.dir}">
</unzip>
</target> </target>
<target name="abcl.test.compile" <target name="abcl.test.compile"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment