<?xml version="1.0" ?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You 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.
-->
<module name="ant">

  <url  href="http://ant.apache.org/index.html"/>
  <description>
    Java based build tool
  </description>

  <git repository="asf-gitbox" dir="ant.git"/>

  <project name="ant">
    <package>org.apache.tools.ant</package>

    <ant target="dist-lite">
      <property name="ant.home" reference="home" project="ant"/>
      <property name="optional.jars.whenmanifestonly" value="create"/>
    </ant>

    <depend project="bootstrap-ant"/>
    <depend project="junit"/>
    <depend project="hamcrest-java"/>
    <depend project="hamcrest-java-library"/>
    <depend project="xml-xerces"/>
    <option project="xalan"/>

    <home nested="dist"/>
    <work nested="build/classes"/>

    <jar name="lib/ant.jar" id="ant"/>
    <jar name="lib/ant-launcher.jar" id="ant-launcher"/>

    <jar name="lib/ant-jmf.jar" id="ant-jmf"/>
    <jar name="lib/ant-junit.jar" id="ant-junit"/>
    <jar name="lib/ant-junit4.jar" id="ant-junit4"/>
    <jar name="lib/ant-swing.jar" id="ant-swing"/>
    <jar name="lib/ant-apache-resolver.jar" id="ant-apache-resolver"/>
    <jar name="lib/ant-apache-xalan2.jar" id="ant-apache-xalan2"/>

    <license name="LICENSE"/>
  </project>

  <!-- Ant 1.7+ is available under groupId org.apache.ant -->
  <project name="org.apache.ant" groupId="org.apache.ant">
    <depend project="ant"/>
    <jar name="dist/lib/ant.jar" id="ant"/>
    <jar name="dist/lib/ant-launcher.jar" id="ant-launcher"/>
    <jar name="dist/lib/ant-apache-resolver.jar" id="ant-apache-resolver"/>
    <jar name="dist/lib/ant-apache-xalan2.jar" id="ant-apache-xalan2"/>
    <jar name="dist/lib/ant-jmf.jar" id="ant-jmf"/>
    <jar name="dist/lib/ant-junit.jar" id="ant-junit"/>
    <jar name="dist/lib/ant-swing.jar" id="ant-swing"/>
    <license name="LICENSE"/>
  </project>

  <project name="dist-ant">
    <mkdir dir="build/javadocs"/>
    <ant target="distribution">
      <property name="chmod.fail" value="false"/>
      <property name="optional.jars.whenmanifestonly" value="create"/>
      <property name="javadoc.notrequired" value="true"/>
    </ant>

    <depend project="ant" inherit="runtime"/>
    <depend project="ant-cyclonedx" inherit="all"/>
    <depend project="xml-xerces"/>
    <option project="xalan"/>
    <option project="antlr" ids="antlr4" runtime="true"/>
    <option project="bcel" runtime="true"/>
    <option project="commons-logging" runtime="true"/>
    <option project="commons-net" runtime="true"/>
    <option project="jaf" runtime="true"/>
    <option project="jakarta-bsf" runtime="true"/>
    <option project="jakarta-regexp" runtime="true"/>
    <option project="jakarta-servletapi-5-servlet" runtime="true"/>
    <option project="javamail" runtime="true"/>
    <option project="jdepend" runtime="true"/>
    <option project="jsch" runtime="true"/>
    <option project="junit"/>
    <option project="hamcrest-java"/>
    <option project="hamcrest-java-library"/>
    <option project="log4j-12" runtime="true"/>
    <option project="oro" runtime="true"/>
    <option project="xz" runtime="true"/>

    <home nested="build"/>
    <!-- since we are now running the compile-tests target, the work element is necessary 
         so that the test classes which reference optional tasks compiled in this step  
         can be built.
         we have had problems with ssh, oro, jakarta-regexp dependent classes -->
    <work nested="build/classes"/>

    <jar name="lib/ant.jar" id="ant"/>
    <jar name="lib/ant-launcher.jar" id="ant-launcher"/>

    <jar name="lib/ant-antlr.jar" id="ant-antlr"/>
    <jar name="lib/ant-apache-bcel.jar" id="ant-apache-bcel"/>
    <jar name="lib/ant-apache-bsf.jar" id="ant-apache-bsf"/>
    <jar name="lib/ant-apache-log4j.jar" id="ant-apache-log4j"/>
    <jar name="lib/ant-apache-oro.jar" id="ant-apache-oro"/>
    <jar name="lib/ant-apache-regexp.jar" id="jakarta-regexp"/>
    <jar name="lib/ant-apache-resolver.jar" id="ant-apache-resolver"/>
    <jar name="lib/ant-apache-xalan2.jar" id="ant-apache-xalan2"/>
    <jar name="lib/ant-commons-logging.jar" id="ant-commons-logging"/>
    <jar name="lib/ant-commons-net.jar" id="ant-commons-net"/>
    <jar name="lib/ant-imageio.jar" id="ant-imageio"/>
    <jar name="lib/ant-jai.jar" id="ant-jai"/>
    <jar name="lib/ant-javamail.jar" id="ant-javamail"/>
    <jar name="lib/ant-jdepend.jar" id="ant-jdepend"/>
    <jar name="lib/ant-jmf.jar" id="ant-jmf"/>
    <jar name="lib/ant-jsch.jar" id="ant-jsch"/>
    <jar name="lib/ant-junit.jar" id="ant-junit"/>
    <jar name="lib/ant-junit4.jar" id="ant-junit4"/>
    <jar name="lib/ant-netrexx.jar" id="ant-netrexx.jar"/>
    <jar name="lib/ant-swing.jar" id="ant-swing"/>
    <jar name="lib/ant-xz.jar" id="ant-xz"/>
  </project>

  <project name="ant-testutil" groupId="org.apache.ant">
    <ant target="test-jar"/>

    <depend project="ant"/>
    <depend project="junit"/>
    <depend project="xml-xerces"/>
    <home nested="build/lib"/>
    <jar name="ant-testutil.jar" id="ant-testutil"/>
  </project>

  <project name="test-ant">
    <ant target="run-tests">
      <property name="test.haltonfailure" value="false"/>
      <property name="ant.home" reference="home" project="ant"/>
      <sysproperty name="security.manager" value="allow"/>
    </ant>

    <depend project="dist-ant" inherit="runtime"/>
    <depend project="antunit"/>
    <depend project="hamcrest-java"/>
    <option project="hamcrest-java-library"/>
    <depend project="junit" inherit="runtime" />
    <depend project="xml-xerces"/>
    <option project="xalan"/>

    <work nested="build/testcases"/>
    <work nested="src/tests/junit"/>
    <work nested="src/etc/testcases"/>
    <work nested="src/etc/testcases/taskdefs/optional/out"/>
    <work nested="src/tests/antunit/filters"/>
    <work nested="src/tests/antunit/taskdefs/importtests"/>
    <work nested="src/tests/antunit/filters/foo"/>
    <work nested="src/tests/antunit/taskdefs/foo"/>
    
    <work nested="build/antunit/tmp/testinput/build"/>
    <work nested="build/antunit/tmp/testoutput"/>
    <work nested="build/antunit/tmp/test.jar"/>
    <work nested="build/antunit/tmp/test1.jar"/>
    <work nested="build/antunit/tmp/test2.jar"/>
    <work nested="build/antunit/tmp/test3.jar"/>
    <work nested="build/antunit/tmp/test4.jar"/>
    <work nested="build/antunit/tmp/test5.jar"/>
    <work nested="build/antunit/tmp/resources"/>
  </project>

  <project name="bootstrap-ant">
    <script name="bootstrap"/>

    <depend project="ant-1.6.5-pom"/>

    <home nested="bootstrap"/>
    <jar name="lib/ant.jar"/>
    <jar name="lib/ant-launcher.jar" id="ant-launcher"/>
  </project>

</module>

