<?xml version="1.0" encoding="UTF-8"?>
<!-- 

 Copyright 2001-2004 The Apache Software Foundation.
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
      http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 -->

<project default="warning" name="Gump Build Support" basedir=".">

    <property file="${basedir}/project.properties"/>
    <property file="${basedir}/../project.properties"/>

    <target name="need-for-common-build" unless="avalon.buildsystem.available">
<fail>
===================================================================
BUILD SYSTEM FAILURE!
===================================================================

a required file, ${avalon.buildsystem}/maven-common-gump-build.xml,
cannot be found. Try setting the avalon.buildsystem property in
project.properties to the correct location.
</fail>
    </target>


    <target name="delegate">
        <available file="${avalon.buildsystem}/maven-common-gump-build.xml"
                property="avalon.buildsystem.available"/>
        <antcall target="need-for-common-build"/>

        <ant inheritRefs="true" target="avalon:${target}" 
           antfile="${avalon.buildsystem}/maven-common-gump-build.xml" inheritAll="true"/>
    </target>

    <target name="warning">
        <antcall target="delegate">
            <param name="target" value="warning"/>
        </antcall>
    </target>

    <target name="jar">
        <antcall target="delegate">
            <param name="target" value="jar"/>
        </antcall>
    </target>

    <target name="javadocs">
        <antcall target="delegate">
            <param name="target" value="javadocs"/>
        </antcall>
    </target>

    <target name="dist">
        <antcall target="delegate">
            <param name="target" value="dist"/>
        </antcall>
    </target>

</project>
