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


The following commit(s) were added to refs/heads/master by this push:
     new d07c59a  use named classloaders for typedef/taskdef
d07c59a is described below

commit d07c59aee87528c5b5f3ea441d6a292309dd0a35
Author: Stefan Bodewig <[email protected]>
AuthorDate: Sat Aug 8 15:30:51 2026 +0200

    use named classloaders for typedef/taskdef
---
 build.xml            | 5 +++--
 cyclonedx-common.xml | 3 ++-
 ivy.xml              | 5 ++++-
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/build.xml b/build.xml
index 761c139..2a2f5d0 100644
--- a/build.xml
+++ b/build.xml
@@ -144,8 +144,9 @@
     <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"/>
+             resource="org/apache/ant/antunit/antlib.xml"
+             classpathref="classpath.test"
+             loaderRef="antlib.classloader.antunit"/>
   </target>
 
   <target name="compile-tests" depends="setup-for-junit-tests, antlib"
diff --git a/cyclonedx-common.xml b/cyclonedx-common.xml
index 41257ef..7a49094 100644
--- a/cyclonedx-common.xml
+++ b/cyclonedx-common.xml
@@ -49,7 +49,8 @@ under the License.
                    log="download-only"/>
     <typedef uri="antlib:org.apache.ant.cyclonedx"
              resource="org/apache/ant/cyclonedx/antlib.xml"
-             classpathref="cyclonedx.classpath"/>
+             classpathref="cyclonedx.classpath"
+             loaderRef="antlib.classloader.cyclonedx"/>
   </target>
 
   <target name="define-common-cyclonedx-references"
diff --git a/ivy.xml b/ivy.xml
index 95162ef..18b3011 100644
--- a/ivy.xml
+++ b/ivy.xml
@@ -135,7 +135,10 @@
     <path id="ivy.lib.path">
       <fileset dir="${ivy.jar.dir}" includes="*.jar"/>
     </path>
-    <taskdef resource="org/apache/ivy/ant/antlib.xml" 
uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
+    <taskdef resource="org/apache/ivy/ant/antlib.xml"
+             uri="antlib:org.apache.ivy.ant"
+             classpathref="ivy.lib.path"
+             loaderRef="antlib.classloader.ivy"/>
   </target>
   
 

Reply via email to