extract files to build dir instead of /tmp

This commit is contained in:
Stefan Bodewig 2026-06-07 14:58:34 +02:00
parent 0e6d805318
commit c0601d9258
No known key found for this signature in database
GPG Key ID: 23738DFD7C40DE43
1 changed files with 5 additions and 11 deletions

View File

@ -944,12 +944,6 @@
</target>
<target name="prepare-distribution-sboms" depends="define-cyclonedx-components">
<property name="ant.auto.tmpdir" value="${ant.tmpdir}"
unless:set="ant.auto.tmpdir" xmlns:unless="ant:unless"
if:set="ant.tmpdir" xmlns:if="ant:if"/>
<property name="ant.auto.tmpdir" value="${java.io.tmpdir}"
unless:set="ant.auto.tmpdir" xmlns:unless="ant:unless"/>
<macrodef name="create-tarball-bom">
<attribute name="binsrc"/>
<attribute name="binarysource"/>
@ -991,8 +985,8 @@
<attribute name="binarysource"/>
<element name="componentChildren" implicit="true" optional="true"/>
<sequential>
<mkdir dir="${ant.auto.tmpdir}/@{binsrc}"/>
<unzip dest="${ant.auto.tmpdir}/@{binsrc}"
<mkdir dir="${build.dir}/sbom/@{binsrc}"/>
<unzip dest="${build.dir}/sbom/@{binsrc}"
src="${distrib.dir}/dist/${build.version}/${snapshot.full.name}-@{binsrc}.zip"/>
<create-tarball-bom
binsrc="@{binsrc}"
@ -1002,7 +996,7 @@
<componentChildren/>
</moreComponentChildren>
<archiveContent>
<fileset dir="${ant.auto.tmpdir}/@{binsrc}" defaultexcludes="no"/>
<fileset dir="${build.dir}/sbom/@{binsrc}" defaultexcludes="no"/>
</archiveContent>
</create-tarball-bom>
<create-tarball-bom
@ -1013,10 +1007,10 @@
<componentChildren/>
</moreComponentChildren>
<archiveContent>
<fileset dir="${ant.auto.tmpdir}/@{binsrc}" defaultexcludes="no"/>
<fileset dir="${build.dir}/sbom/@{binsrc}" defaultexcludes="no"/>
</archiveContent>
</create-tarball-bom>
<delete dir="${ant.auto.tmpdir}/@{binsrc}"/>
<delete dir="${build.dir}/sbom/@{binsrc}"/>
</sequential>
</macrodef>
</target>