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

schultz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 51d525ee59d9497489e2fa46e1a5287f4ec9c47c
Author: schultz <schu...@apache.org>
AuthorDate: Thu Oct 12 14:14:41 2023 -0700

    Use pre-computed version name.
    Slight hack to ignore x86 binaries for Tomcat 11.
---
 build.xml | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/build.xml b/build.xml
index f6cf11b037..14c5744ef2 100644
--- a/build.xml
+++ b/build.xml
@@ -4030,16 +4030,24 @@ Read the Building page on the Apache Tomcat 
documentation site for details on ho
       <!-- Release hashes can be either 'released' or staged-for-release -->
       <!-- First, try to find a released version hash. -->
       <antcall target="trydownload">
-        <param name="sourcefile" 
value="https://dist.apache.org/repos/dist/release/tomcat/tomcat-${version.major}/v${version.major}.${version.minor}.${version.build}/@{src-or-bin}/@{basefile}.sha512";
 />
+        <param name="sourcefile" 
value="https://dist.apache.org/repos/dist/release/tomcat/tomcat-${version.major}/v${version}/@{src-or-bin}/@{basefile}.sha512";
 />
         <param name="destfile" value="verify/@{basefile}.sha512" />
       </antcall>
       <!-- If necessary, try to find a dev version hash. -->
       <antcall target="trydownload">
-        <param name="sourcefile" 
value="https://dist.apache.org/repos/dist/dev/tomcat/tomcat-${version.major}/v${version.major}.${version.minor}.${version.build}/@{src-or-bin}/@{basefile}.sha512";
 />
+        <param name="sourcefile" 
value="https://dist.apache.org/repos/dist/dev/tomcat/tomcat-${version.major}/v${version}/@{src-or-bin}/@{basefile}.sha512";
 />
         <param name="destfile" value="verify/@{basefile}.sha512" />
       </antcall>
 
-      <available property="success" file="verify/@{basefile}.sha512" />
+      <condition property="success">
+        <or>
+          <available file="verify/@{basefile}.sha512" />
+          <and>
+            <contains string="${version}" substring="11.0." /><!-- Super hack 
-->
+            <contains string="@{basefile}" substring="x86" />
+          </and>
+        </or>
+      </condition>
 
       <fail unless="success">
 Unable to locate release hash for @{basefile}
@@ -4063,7 +4071,7 @@ Unable to locate release hash for @{basefile}
       <echo unless:set="reproducible-@{num}">
 Signature mismatch for @{basefile}:
   </echo>
-      <printfile unless:set="reproducible-@{num}" 
file="output/release/v${version.major}.${version.minor}.${version.build}/@{src-or-bin}/@{basefile}.sha512"
 />
+      <printfile unless:set="reproducible-@{num}" 
file="output/release/v${version}/@{src-or-bin}/@{basefile}.sha512" />
       <printfile unless:set="reproducible-@{num}" 
file="verify/@{basefile}.sha512" />
     </sequential>
   </macrodef>
@@ -4075,7 +4083,7 @@ Signature mismatch for @{basefile}:
 
 This does not appear to be a copy of a released tag; no 
build.properties.release file exists.
 </fail>
-    <available property="built" 
file="output/release/v${version.major}.${version.minor}.${version.build}/bin/${final.name}.tar.gz"
 />
+    <available property="built" 
file="output/release/v${version}/bin/${final.name}.tar.gz" />
     <fail unless="built">
 
 It appears there are no build artifacts to verify. Please run 'ant release' 
first.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to