Skip to content
Snippets Groups Projects
testdependency.xml 6.7 KiB
Newer Older
david_williams's avatar
david_williams committed
<?xml version="1.0"?>
    <!--
        ======================================================================
        Properties that must be passed to this script: base.install.dir
        dependencyTargets local.cache.dir dependency.properties
        ======================================================================
    -->
david_williams's avatar
david_williams committed
<project
    name="test"
    default="get">
    <property
        environment="env"/>
    <!-- required to get proper value of dropinsFolder -->
    <property
        name="keyCfgFile"
        value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
    <echo
        message="keyCfgFile: ${keyCfgFile}"/>
david_williams's avatar
david_williams committed
    <fail
        message="Required property file does not exist: ${keyCfgFile}">
        <condition>
            <not>
                <available
                    file="${keyCfgFile}"/>
            </not>
        </condition>
    </fail>
    <property
        file="${keyCfgFile}"/>
david_williams's avatar
david_williams committed
    <condition
        property="getprereq.eclipse">
        <istrue
            value="true"/>
    </condition>
    <condition
        property="getprereq.eclipseplatform">
        <istrue
            value="false"/>
    </condition>
    <condition
        property="getprereq.emf">
        <istrue
            value="true"/>
    </condition>
    <condition
        property="getprereq.emfxsd">
        <istrue
            value="true"/>
    </condition>
    <condition
        property="getprereq.emfvalidation">
        <istrue
            value="false"/>
    </condition>
    <condition
        property="getprereq.gef">
        <istrue
            value="true"/>
    </condition>
    <condition
        property="getprereq.dtp">
        <istrue
            value="false"/>
    </condition>
    <condition
        property="getprereq.wst">
        <istrue
            value="true"/>
    </condition>
    <condition
        property="getprereq.jst">
        <istrue
            value="false"/>
    </condition>
    <condition
        property="getprereq.wtp">
        <istrue
            value="false"/>
    </condition>
    <target
        name="get">
        <!--
            read in this properties, just so we can make sure our
            requested pre-reqs are defined, which we do later with
            statements such if="${groupId}.url"
        -->
        <property
            file="${dependency.properties}"/>
        <antcall
            target="prereq.emf"/>
        <antcall
            target="prereq.emfxsd"/>
        <antcall
            target="prereq.emfvalidation"/>
        <antcall
            target="prereq.gef"/>
        <antcall
            target="prereq.dtp"/>
        <antcall
            target="prereq.wst"/>
        <antcall
            target="prereq.jst"/>
        <antcall
            target="prereq.wtp"/>
        <antcall
            target="getAndInstallBase">
            <param
                name="groupId"
                value="eclipse"/>
        </antcall>
        <antcall
            target="getAndInstallDropins">
            <param
                name="groupId"
                value="eclipseTestFramework"/>
        </antcall>
    </target>
    <target
        name="prereq.eclipse"
        if="getprereq.eclipse">
        <antcall
            target="getAndInstallBase">
            <param
                name="groupId"
                value="eclipse"/>
        </antcall>
    </target>
    <target
        name="prereq.eclipseplatform"
        if="getprereq.eclipseplatform">
        <antcall
            target="getAndInstallBase">
            <param
                name="groupId"
                value="eclipseplatform"/>
        </antcall>
    </target>
    <target
        name="prereq.emf"
        if="getprereq.emf">
        <antcall
            target="getAndInstallDropins">
david_williams's avatar
david_williams committed
            <param
                name="groupId"
                value="emf"/>
david_williams's avatar
david_williams committed
        </antcall>
    </target>
    <target
        name="prereq.emfxsd"
        if="getprereq.emfxsd">
        <antcall
            target="getAndInstallDropins">
david_williams's avatar
david_williams committed
            <param
                name="groupId"
                value="emfxsd"/>
david_williams's avatar
david_williams committed
        </antcall>
    </target>
    <target
        name="prereq.emfvalidation"
        if="getprereq.emfvalidation">
        <antcall
            target="getAndInstallDropins">
david_williams's avatar
david_williams committed
            <param
                name="groupId"
david_williams's avatar
david_williams committed
        </antcall>
    </target>
    <target
        name="prereq.gef"
        if="getprereq.gef">
        <antcall
            target="getAndInstallDropins">
david_williams's avatar
david_williams committed
            <param
                name="groupId"
david_williams's avatar
david_williams committed
        </antcall>
    </target>
    <target
        name="prereq.dtp"
        if="getprereq.dtp">
        <antcall
            target="getAndInstallDropins">
david_williams's avatar
david_williams committed
            <param
                name="groupId"
        </antcall>
    </target>
    <target
        name="prereq.wst"
        if="getprereq.wst">
        <antcall
            target="getAndInstallDropins">
            <param
                name="groupId"
                value="wst"/>
david_williams's avatar
david_williams committed
        </antcall>
    </target>
    <target
        name="prereq.jst"
        if="getprereq.jst">
        <antcall
            target="getAndInstallDropins">
            <param
                name="groupId"
                value="jst"/>
        </antcall>
    </target>
    <target
        name="prereq.wtp"
        if="getprereq.wtp">
        <antcall
            target="getAndInstallDropins">
            <param
                name="groupId"
                value="wtp"/>
        </antcall>
    </target>
    <target
        name="getAndInstallBase"
        if="${groupId}.url">
david_williams's avatar
david_williams committed
        <ant
            antfile="${dependencyTargets}"
            target="checkDependency">
            <property
                name="groupId"
                value="${groupId}"/>
david_williams's avatar
david_williams committed
        </ant>
        <ant
            antfile="${dependencyTargets}"
            target="installDependency">
            <property
                name="groupId"
                value="${groupId}"/>
david_williams's avatar
david_williams committed
            <property
                name="install.destination"
                value="${base.install.dir}"/>
david_williams's avatar
david_williams committed
        </ant>
    </target>
    <target
        name="getAndInstallDropins"
        if="${groupId}.url">
david_williams's avatar
david_williams committed
        <ant
            antfile="${dependencyTargets}"
            target="checkDependency">
            <property
                name="groupId"
                value="${groupId}"/>
david_williams's avatar
david_williams committed
        </ant>
        <ant
            antfile="${dependencyTargets}"
            target="installDependency">
            <property
                name="groupId"
                value="${groupId}"/>
david_williams's avatar
david_williams committed
            <property
                name="install.destination"
                value="${base.install.dir}${dropinsFolder}"/>
david_williams's avatar
david_williams committed
        </ant>
    </target>
</project>