This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/flex-sdk.git
commit 403ed72c7ab54ee577c874e492c329409821d8c4 Author: Josh Tynjala <[email protected]> AuthorDate: Thu Apr 23 10:49:44 2026 -0700 ApproveSDK.xml: fix examine-jars to work on all platforms (not macOS only) --- ApproveSDK.xml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/ApproveSDK.xml b/ApproveSDK.xml index 903655de8e..58792a4934 100644 --- a/ApproveSDK.xml +++ b/ApproveSDK.xml @@ -938,11 +938,7 @@ <echo>end of list of folders in external jars. This may impact LICENSE and NOTICE</echo> </target> - <!-- someday figure out how to use - find . -name "*.jar" -exec tar ft {} \; | sort -u > paths.txt --> - - <!-- how to do tar and sort on Windows? --> - <target name="examine-jars" if="isMac"> + <target name="examine-jars"> <!-- comma delimited list, no spaces, not one file per line --> <copy file="jars.txt" tofile="loop.txt" /> <ant antfile="ApproveSDK.xml" target="loopOnce" inheritAll="false" /> @@ -980,21 +976,23 @@ <delete dir="${basedir}/jar" failonerror="false" /> <mkdir dir="${basedir}/jar" /> <unjar src="${basedir}/${bin.package.url.name}/${thisFile}" dest="${basedir}/jar" /> - <exec executable="tar" output="${basedir}/jarclasses.txt"> + <exec executable="${java.home}/bin/jar" output="${basedir}/jarclasses.txt"> <arg value="tf" /> <arg value="${basedir}/${bin.package.url.name}/${thisFile}" /> </exec> <replaceregexp file="${basedir}/jarclasses.txt" match="(.*)/(.*)" replace="\1" flags="m" byline="true"/> - <exec executable="sort" output="${basedir}/jarpaths.txt"> - <arg value="-u" /> - <arg value="${basedir}/jarclasses.txt" /> - </exec> + <copy file="${basedir}/jarclasses.txt" tofile="${basedir}/jarpaths.txt"> + <filterchain> + <sortfilter/> + <uniqfilter/> + </filterchain> + </copy> <antcall target="display-text" > <param name="file" value="${basedir}/jarpaths.txt" /> </antcall> </target> - <target name="jar-check" > + <target name="jar-check"> <antcall target="show-jar-folders" /> <input message="Above is the list of folders in this ${thisFile}.
Folder names can sometimes indicate presence of third-party content that needs to be in LICENSE and/or NOTICE files.
Press the Enter key to see the LICENSE for this jar."/>
