view bootstrap.xml @ 361:7b6d30651db7 tip

Cygwin has an ENV that container 'CI'. Causing build issues. Just check for 'github' to determine if it is a local build
author davis@ssdt-ohio.org
date Thu, 16 Nov 2023 15:52:40 -0500
parents 6c62c55b613f
children
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"
    xmlns:ssdtant="antlib:org.ssdt_ohio.tools.ant">

    <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"/>

    <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>
            <ssdt:require-ant file="@{file}"/>
            <import    file="${ssdt.devel.kit}/@{file}"/>
        </sequential>
    </macrodef>

    <macrodef name="require-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" />
        </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>

    <macrodef name="properties"
              description="Creates test properties file from ant properties."
              uri="http://www.ssdt-ohio.org/ant/common">
        <attribute name="dir" description="Target directory"/>
        <attribute name="file" description="Target properties file" default="@{prefix}.properties"/>
        <attribute name="prefix" description="Prefix of properties to save to new file"/>
        <sequential>
            <mkdir dir="@{dir}"/>
            <echoproperties destfile="@{dir}/@{file}">
                <propertyset>
                    <propertyref prefix="@{prefix}."/>
                    <mapper type="glob" from="@{prefix}.*" to="*"/>
                </propertyset>
            </echoproperties>
        </sequential>
    </macrodef>

    <macrodef name="test-properties"
              description="Creates test properties file from ant properties."
              uri="http://www.ssdt-ohio.org/ant/common">
        <attribute name="file" description="Target properties file" default="@{prefix}.properties"/>
        <attribute name="prefix" description="Prefix of properties to save to new file"/>
        <sequential>
            <ssdt:properties dir="${build.test.classes.dir}" file="@{file}" prefix="@{prefix}"/>
        </sequential>
    </macrodef>

     <property           name="ssdt.ant.jar.src"
                        value="${ssdt.devel.kit.src}/legacy.jars/ssdt-ant.jar"/>

    <ssdt:fetch         dest="${user.home.ant.lib}/ssdt-ant.jar"
                        src="${ssdt.ant.jar.src}"/>

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

</project>