This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant-antlibs-common.git

commit 2a9972ef3b45984824a23831857c95ba2a6518b6
Author: Stefan Bodewig <[email protected]>
AuthorDate: Sun May 17 12:09:22 2026 +0200

    more antunit typedef to make buildfile easier to use for AntUnit itself
---
 build.xml | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/build.xml b/build.xml
index eac4b7f..635aa36 100644
--- a/build.xml
+++ b/build.xml
@@ -89,6 +89,7 @@
       <metainf file="NOTICE"/>
       <metainf file="${common.basedir}/LICENSE"/>
     </jar>
+    <property name="antlib.location" location="${jarname}"/>
   </target>
 
   <target name="checksum-target-jar"
@@ -128,16 +129,20 @@
     to the correct location.</fail>
   </target>
 
-  <target name="setup-for-antunit-tests" depends="setup,determine-test-types"
+  <target name="setup-for-antunit-tests" 
depends="setup,determine-test-types,resolve"
     unless="skip-antunit">
     <available classname="org.apache.ant.antunit.AntUnit"
       property="antunit-present?"
       classpathref="classpath.test"/>
 
     <fail unless="antunit-present?">The AntUnit Ant library is not 
present.</fail>
+
+    <typedef uri="antlib:org.apache.ant.antunit"
+      resource="org/apache/ant/antunit/antlib.xml"
+      classpathref="classpath.test"/>
   </target>
 
-  <target name="compile-tests" depends="setup-for-junit-tests, antlib, resolve"
+  <target name="compile-tests" depends="setup-for-junit-tests, antlib"
     unless="skip-junit">
     <javac 
       srcdir="${src.junit}"
@@ -195,10 +200,6 @@
     <property name="antunit.excludes" value="" />
 
     <mkdir dir="${antunit.report.dir}" />
-    <typedef uri="antlib:org.apache.ant.antunit"
-      resource="org/apache/ant/antunit/antlib.xml"
-      classpathref="classpath.test"/>
-    <property name="antlib.location" location="${jarname}"/>
     <au:antunit xmlns:au="antlib:org.apache.ant.antunit"
       failOnError="false"
       errorProperty="antunit.tests.failed"

Reply via email to