Changeset 14927


Ignore:
Timestamp:
12/26/16 10:59:37 (5 years ago)
Author:
Mark Evenson
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/build.xml

    r14917 r14927  
    956956    <property name="junit.path"
    957957              value="${abcl.ext.dir}/junit-4.8.1.jar"/>
    958 
     958    <property name="maven.dist.name"
     959              value="apache-maven-3.3.9-bin.zip"/>
     960    <property name="maven.dist.uri"
     961              value="http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/${maven.dist.name}"/>
     962    <property name="maven.local.path"
     963              value="${abcl.ext.dir}/${maven.dist.name}"/>
    959964
    960965    <path id="abcl.test.compile.classpath">
     
    967972    <target name="abcl.ext.p">
    968973      <!--XXX generalize over enumeration of all contributions to
    969            abcl.ext if we get more of them.  -->
    970       <available file="${junit.path}" property="abcl.ext.p"/>
    971     </target>
     974          abcl.ext if we get more of them.  -->
     975      <condition property="abcl.ext.p">
     976        <and>
     977          <available file="${junit.path}"/>
     978          <available file="${maven.local.path}"/>
     979        </and>
     980      </condition>
     981    </target>
     982
    972983    <target name="abcl.ext" depends="abcl.ext.p" unless="abcl.ext.p">
    973 
    974984      <mkdir dir="${abcl.ext.dir}"/>
    975985      <get
     
    977987          usetimestamp="true"
    978988          dest="${junit.path}"/>
     989      <get
     990          src="${maven.dist.uri}"
     991          usetimestamp="true"
     992          dest="${maven.local.path}"/>
     993    </target>
     994
     995    <target name="abcl.ext.maven" depends="abcl.ext">
     996      <echo>Installing Maven for ABCL from ${maven.dist.uri}.</echo>
     997      <unzip src="${maven.local.path}"
     998             dest="${abcl.ext.dir}">
     999      </unzip>
    9791000    </target>
    9801001       
Note: See TracChangeset for help on using the changeset viewer.