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

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


The following commit(s) were added to refs/heads/main by this push:
     new eb9913a7d7 BZ 67538: Make use of Ant's <javaversion /> task to enfore 
the mininum Java build version
eb9913a7d7 is described below

commit eb9913a7d70522f60682728a8950e993085d1d33
Author: Michael Osipov <micha...@apache.org>
AuthorDate: Thu Oct 12 15:14:46 2023 +0200

    BZ 67538: Make use of Ant's <javaversion /> task to enfore the mininum Java 
build version
---
 build.xml                  | 7 +++++++
 webapps/docs/changelog.xml | 8 ++++++++
 2 files changed, 15 insertions(+)

diff --git a/build.xml b/build.xml
index d1af5a62e2..071091425a 100644
--- a/build.xml
+++ b/build.xml
@@ -109,6 +109,13 @@
   <property name="min.java.version" value="21"/>
   <property name="build.java.version" value="21"/>
 
+  <!-- Check Java Build Version -->
+  <fail message="Java version ${build.java.version} or newer is required 
(${java.version} is installed)">
+    <condition>
+      <not><javaversion atleast="${build.java.version}" /></not>
+    </condition>
+  </fail>
+
   <!-- Locations to create the JAR artifacts -->
   <!-- Standard JARs -->
   <property name="bootstrap.jar" value="${tomcat.build}/bin/bootstrap.jar"/>
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index faf938bb4a..ea64cd14b3 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -113,6 +113,14 @@
       </fix>
     </changelog>
   </subsection>
+  <subsection name="Other">
+    <changelog>
+      <add>
+        <bug>67538</bug>: Make use of Ant's <code>&lt;javaversion /&gt;</code> 
task
+        to enfore the mininum Java build version. (michaelo)
+      </add>
+    </changelog>
+  </subsection>
 </section>
 <section name="Tomcat 11.0.0-M13 (markt)" rtext="release in progress">
   <subsection name="Coyote">


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

Reply via email to