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

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


The following commit(s) were added to refs/heads/master by this push:
     new 23d1521  overrider target that runs AntUnit as long as Ant 1.8 is the 
target
23d1521 is described below

commit 23d1521535ac246ec5e46186a04d36b20262fb80
Author: Stefan Bodewig <[email protected]>
AuthorDate: Sat Jun 20 07:49:46 2026 +0200

    overrider target that runs AntUnit as long as Ant 1.8 is the target
---
 build.xml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/build.xml b/build.xml
index f07222e..ca68feb 100644
--- a/build.xml
+++ b/build.xml
@@ -27,6 +27,34 @@ under the License.
   <target name="after-src-dist" depends="src-sboms"/>
   <target name="after-bin-dist" depends="bin-sboms"/>
 
+  <target name="antunit-test" depends="ready-to-test-with-antunit,resolve"
+    unless="skip-antunit">
+    <condition property="antunit.includes" value="${antunit.testcase}"
+               else="**/test.xml,**/*-test.xml">
+      <isset property="antunit.testcase" />
+    </condition>
+
+    <property name="antunit.excludes" value="" />
+
+    <mkdir dir="${antunit.report.dir}" />
+    <au:antunit xmlns:au="antlib:org.apache.ant.antunit"
+      failOnError="false"
+      errorProperty="antunit.tests.failed"
+      >
+      <fileset dir="${src.antunit}" includes="${antunit.includes}"
+               excludes="${antunit.excludes}" />
+
+      <au:xmllistener todir="${antunit.report.dir}" />
+      <au:plainlistener/>
+      <referenceset>
+        <reference refid="classpath.test"/>
+      </referenceset>
+      <propertyset>
+        <propertyref name="antlib.location"/>
+      </propertyset>
+    </au:antunit>
+  </target>
+
   <import file="common/build.xml"/>
   <import file="cyclonedx.xml"/>
 </project>

Reply via email to