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-native.git

commit 82a502dab27ac12d00079ae3310387b000f7e901
Author: Michael Osipov <micha...@apache.org>
AuthorDate: Thu Oct 12 16:13:01 2023 +0200

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

diff --git a/build.xml b/build.xml
index f8d6b767b..ce1f16c48 100644
--- a/build.xml
+++ b/build.xml
@@ -64,6 +64,13 @@
     <property name="compile.release" value="11"/>
     <property name="build.java.version" value="11"/>
 
+    <!-- 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>
+
     <!-- The base directory for component sources -->
     <property name="source.home"           value="java"/>
 
diff --git a/xdocs/miscellaneous/changelog.xml 
b/xdocs/miscellaneous/changelog.xml
index e37f73976..c5ea8ce09 100644
--- a/xdocs/miscellaneous/changelog.xml
+++ b/xdocs/miscellaneous/changelog.xml
@@ -33,6 +33,10 @@
 </section>
 <section name="Changes in 2.0.7">
   <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>
     <fix>
       <bug>67615</bug>: Windows binary for version 2 has incorrect version 
suffix
       compared to the GNU autoconf version. (michaelo)


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

Reply via email to