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

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


The following commit(s) were added to refs/heads/cyclonedx by this push:
     new 38918c17c add cyclonedx SBOMs to distributions
38918c17c is described below

commit 38918c17c186606e6ab10c3ea4199aa5d183668b
Author: Stefan Bodewig <[email protected]>
AuthorDate: Sun May 24 19:46:17 2026 +0200

    add cyclonedx SBOMs to distributions
---
 build.xml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/build.xml b/build.xml
index 1e60a1c35..b12ad93ee 100644
--- a/build.xml
+++ b/build.xml
@@ -1030,7 +1030,7 @@
          Create the essential distribution that can run Apache Ant
        ===================================================================
   -->
-  <target name="dist-lite" depends="jars,test-jar,-ant-dist-warn-jdk9+"
+  <target name="dist-lite" 
depends="jars,test-jar,component-boms,-ant-dist-warn-jdk9+"
           description="--> creates a minimum distribution to run Apache Ant">
 
     <mkdir dir="${dist.dir}"/>
@@ -1415,6 +1415,12 @@
       </fileset>
       <mapper type="regexp" from="ant(.*).jar" 
to="ant\1/${project.version}/ant\1-${project.version}-sources.jar"/>
     </copy>
+    <copy todir="${java-repository.dir}">
+      <fileset dir="${dist.name}/lib">
+        <include name="ant*-cyclonedx.*"/>
+      </fileset>
+      <mapper type="regexp" from="ant(.*)-cyclonedx.(.*)" 
to="ant\1/${project.version}/ant\1-${project.version}-cyclonedx.\2"/>
+    </copy>
     <jar 
destfile="${java-repository.dir}/ant/${project.version}/ant-${project.version}-javadoc.jar"
       basedir="${build.javadocs}">
       <metainf dir="${build.dir}">

Reply via email to