build-snapshot.xml 1.91 KB
Newer Older
1 2 3
<project xmlns="antlib:org.apache.tools.ant">

<target name="abcl.snapshot" 
4
        depends="abcl.release,abcl.diagnostic,abcl.version,abcl"
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
        description="Introspect and dump the current build and
  (presumed ) runtime targets as binary executable JVM objects.">

  <copy file="${dist.dir}/abcl-bin-${abcl.version}.tar.gz"
        verbose="true"
        toFile="${dist.dir}/abcl-bin-${abcl.src.version}.tar.gz"/>

  <copy file="${dist.dir}/abcl-src-${abcl.version}.tar.gz"
        verbose="true"
        toFile="${dist.dir}/abcl-src-${abcl.src.version}.tar.gz"/>

        <echo>
abcl.version: ${abcl.version}
abcl.version.hg: ${abcl.version.hg}
abcl.src.version: ${abcl.src.version}

</echo>
</target>

<target name="abcl.version" depends="abcl.stamp,abcl.version.hg"/>

<!-- Introspect for other versioning systems if we haven't determined an upstream SVN version -->
<target name="abcl.version.hg"
        depends="abcl.stamp">
  <exec executable="hg" 
    outputproperty="abcl.version.hg.raw"
    failifexecutionfails="false"
    searchpath="true">
        <arg value="id"/>
        <arg value="--id"/>
  </exec>

  <property name="abcl.version.hg"
            value="hg-${abcl.version.hg.raw}"/>
  <property name="abcl.version"
            value="${abcl.version.hg}"/>
  <property name="abcl.src.version"
            value="${abcl.version.hg}"/>
</target>

<!-- Writing the corresponding task for abcl.version.git.raw is an exercise left to the reader. -->


<!-- FIXME Some macrology would be helpful as the basic rules seem obvious ?!? -->

<target name="urn:org.abcl.build.ant.targets.diagnostic"
        depends="abcl.release"/>

<target name="snap" 
        depends="abcl.snapshot"/>

<target name="snapshot" 
        depends="abcl.snapshot"/>

<target name="org.not.abcl.build.ant.targets.diagnostic"
        depends="abcl.diagnostic"/>

<target name="org.not.abcl.build.ant.targets.snapshot"
        depends="abcl.snapshot"/>

</project>