Rev 1968 | Rev 1972 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<project name="load-using-macrodef"><!-- C O P Y R I G H T N O T I C EThis material is confidential to ERG and may not be disclosed in wholeor in part to any third party nor used in any manner whatsoever otherthan for the purposes expressly consented to by ERG in writing.This material is also copyright and may not be reproduced, stored in aretrieval system or transmitted in any form or by any means in whole orin part without the express written consent of ERG.--><!-- ============================================================================================== --><!-- Install ant-using --><property name="ant-using-version" value="1.6.1.tool"/><fail message="An existing ANT using macro has been declared with a different version" status="2"><condition><and><isset property="using.ant-using.version"/><not><equals arg1="${using.ant-using.version}" arg2="${ant-using-version}"/></not></and></condition></fail><property name="using.ant-using.version" value="${ant-using-version}"/><!-- For backward compatibilty, EITHER the GBE_DPKG variable OR the JATS_HOME variable should be set --><fail message="The mandatory environment variable GBE_DPKG (or the alternative JATS_HOME) is missing" status="1"><condition><and><not><isset property="env.GBE_DPKG"/></not><not><isset property="env.JATS_HOME"/></not></and></condition></fail><!-- If one (or the other) is not set, we will set it up here --><condition property="env.GBE_DPKG" value="${env.JATS_HOME}"><not><isset property="env.GBE_DPKG"/></not></condition><condition property="env.JATS_HOME" value="${env.GBE_DPKG}"><not><isset property="env.JATS_HOME"/></not></condition><!-- ============================================================================================== --><!-- Install ant-antcontrib --><property name="using.antcontrib.version" value="1.0b2"/><property name="using.ant-antcontrib.basedir" value="${env.GBE_DPKG}/ant-antcontrib/${using.antcontrib.version}"/><property name="using.antcontrib.basedir" value="${env.GBE_DPKG}/antcontrib/${using.antcontrib.version}"/><mkdir dir="${using.ant-antcontrib.basedir}"/><mkdir dir="${using.antcontrib.basedir}"/><copy todir="${using.ant-antcontrib.basedir}" verbose="yes"><fileset dir="${env.GBE_DPKG}/ant-antcontrib/${using.antcontrib.version}"><include name="*.xml"/></fileset></copy><copy todir="${using.antcontrib.basedir}" verbose="yes"><fileset dir="${env.GBE_DPKG}/antcontrib/${using.antcontrib.version}"><include name="**/*.jar"/></fileset></copy><import file="${using.ant-antcontrib.basedir}/ant-antcontrib.xml" optional="false"/><!-- ============================================================================================== --><!-- Do we have an environment variable for GBE_DPKG_CACHE?If so, use it as the build location.If not, look for a properties file : ant-build-properties (if one exists)If the properties are not found, default to ${user.home}/build-repository --><if><isset property="${env.GBE_DPKG_CACHE}"/><then><property name="build.repository" value="${env.GBE_DPKG_CACHE}"/><echo taskname="ant-using">Using environment variable 'GBE_DPKG_CACHE' as build.repository from : ${build.repository}</echo></then><else><available property="ant-build-properties_available" filepath="${user.home}" file="ant-build-properties"/><if><isset property="ant-build-properties_available"/><then><property file="${user.home}/ant-build-properties"/><echo taskname="ant-using">Using 'ant-build-properties' file for build.repository as : ${build.repository}</echo></then><else><property name="build.repository" value="${user.home}/build-repository"/></else></if></else></if><property name="using.ant-using.basedir" value="${build.repository}/ant-using/${ant-using-version}"/><mkdir dir="${using.ant-using.basedir}"/><copy todir="${using.ant-using.basedir}" verbose="yes"><fileset dir="${env.GBE_DPKG}/ant-using/${ant-using-version}"><include name="*.xml"/></fileset></copy><import file="${using.ant-using.basedir}/ant-using-macro.xml" optional="false"/><!-- ============================================================================================== --><!-- Import the auto.xml file (if it exists), and if it does not then import the depends.xml.The name of the depends.xml it will look for (in this order) is ${ant.project.name}-depends.xml or${ant.project.name}depends.xml.--><available property="auto.xml.exists" filepath="${basedir}" file="auto.xml"/><if><isset property="auto.xml.exists"/><then><import file="${basedir}/auto.xml" optional="true"/></then><else><available property="depends.xml.exists" filepath="${basedir}" file="${ant.project.name}-depends.xml"/><if><isset property="depends.xml.exists"/><then><import file="${basedir}/${ant.project.name}-depends.xml" optional="true"/></then><else><import file="${basedir}/${ant.project.name}depends.xml" optional="true"/></else></if></else></if></project>