<?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="antlibs-antunit" groupId="org.apache.ant">

  <url href="http://ant.apache.org/antlibs/antunit/index.html"/>
  <description>
    Antlib that provides a test framework for Apache Ant tasks and types.
  </description>

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

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

    <ant target="antlib">
      <property name="jarname" value="build/ant-antunit-@@DATE@@.jar"/>
      <!-- Gump uses Java 21 where Java 8 is the minimum target -->
      <property name="javac.-source" value="8"/>
      <property name="javac.-target" value="8"/>
      <property name="javac.test-source" value="8"/>
      <property name="javac.test-target" value="8"/>
    </ant>

    <depend project="ant"/>
    <depend project="junit"/>
    <depend project="xml-xerces"/>

    <jar name="build/ant-antunit-@@DATE@@.jar" id="ant-antunit"/>
    <license name="common/LICENSE"/>

    <!-- Ivy is not used when running in Gump but build will fail
         without this -->
    <work nested="ivy/ivy.jar"/>
  </project>

  <project name="antunit-test">
    <ant target="test">
      <property name="ant-testutil.jar" reference="jarpath"
        project="ant-testutil"/>
      <!-- Gump uses Java 21 where Java 8 is the minimum target -->
      <property name="javac.test-source" value="8"/>
      <property name="javac.test-target" value="8"/>
      <sysproperty name="security.manager" value="allow"/>
    </ant>

    <work nested="build/test-classes"/>

    <depend project="ant"/>
    <depend project="ant-testutil"/>
    <depend project="antunit"/>
    <depend project="junit"/>
    <depend project="xml-xerces"/>

    <work nested="ivy/ivy.jar"/>
  </project>

  <project name="antunit-dist">
    <ant target="distribution"/>

    <depend project="ant-cyclonedx" inherit="all"/>
    <depend project="antunit"/>
    <depend project="junit"/>

    <work nested="ivy/ivy.jar"/>
    <nag from="Gump Integration &lt;general@gump.apache.org&gt;"
         to="Stefan Bodewig &lt;bodewig@apache.org&gt;" />
  </project>

</module>

