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/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new e6b7a6f7b ApproveFalcon.xml: fix examine-jars to work on all platforms 
(not macOS only)
e6b7a6f7b is described below

commit e6b7a6f7b5d635e0a8e876f8bcd4c56bef400b3e
Author: Josh Tynjala <[email protected]>
AuthorDate: Thu Apr 23 10:47:51 2026 -0700

    ApproveFalcon.xml: fix examine-jars to work on all platforms (not macOS 
only)
---
 ApproveFalcon.xml | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/ApproveFalcon.xml b/ApproveFalcon.xml
index ba95ad613..908dd56fa 100644
--- a/ApproveFalcon.xml
+++ b/ApproveFalcon.xml
@@ -398,11 +398,7 @@
         </rat:report>
     </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="ApproveRoyale.xml" target="loopOnce" inheritAll="false" 
/>
@@ -436,19 +432,21 @@
         <delete file="loop1.txt" />
     </target>
 
-    <target name="jar-check" >
+    <target name="jar-check">
         <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>

Reply via email to