view bootstrap.xml @ 7:361f0d420ad4

TL-32: Attempt to handle working off-line
author smith@nwoca.org
date Sat, 18 Dec 2010 11:54:16 -0500
parents e779cd205e30
children 26a4d8410fdf
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?>
<project name="ssdt.bootstrap"  basedir="." default="" xmlns:ssdt="http://www.ssdt-ohio.org/ant/common">
    <echo message="invoking ssdt bootstrap" level="info"/>

    <property   file="${ssdt.devel.kit}/private.properties"/>
    <property   name="user.home.ant.lib"        value="${user.home}/.ant/lib"/>
    <property   name="ssdt.devel.kit.src"       value="http://hg.ssdt-ohio.org/browse/public/develkit"/>
    <property   name="ssdt.ivy.jar.src"         value="http://ivy.ssdt.nwoca.org/repository/ivy/ivy.jar"/>
    <property   name="ssdt.ivy.settings.src"    value="${ssdt.devel.kit.src}/ssdt.default.ivy.settings.xml"/>
    <mkdir      dir="${ssdt.devel.kit}"/>
    <mkdir      dir="${user.home.ant.lib}"/>

    <macrodef name="import-ant" uri="http://www.ssdt-ohio.org/ant/common">
        <attribute name="file"/>
        <sequential>
            <get dest="${ssdt.devel.kit}/@{file}"
                src="${ssdt.devel.kit.src}/@{file}"
                usetimestamp="true" verbose="false" ignoreerrors="true" />
            <import    file="${ssdt.devel.kit}/@{file}"/>
        </sequential>
    </macrodef> 

    <macrodef name="fetch"  uri="http://www.ssdt-ohio.org/ant/common">
        <attribute name="dest" default="${user.home.ant.lib}"/>
        <attribute name="src"/>
        <sequential>
            <get dest="@{dest}"
                src="@{src}"
                usetimestamp="true" verbose="false" ignoreerrors="true"/>
        </sequential>
    </macrodef>

    <ssdt:fetch         dest="${user.home.ant.lib}/ivy.jar"
                        src="${ssdt.ivy.jar.src}"/>
    <ssdt:fetch         dest="${ssdt.devel.kit}/ssdt.default.ivy.settings.xml"
                        src="${ssdt.ivy.settings.src}"/>

    <ssdt:import-ant file="ivy-ant.xml"/>
    <ssdt:import-ant file="antcontrib-ant.xml"/>
    <ssdt:import-ant file="ssdt-common-build.xml"/>
</project>