This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 455b17aa308c8ddffc6c493f74379bc87a18f067 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Jan 13 16:36:32 2022 +0000 Switch to building with Java 11 and using --release Remove unnecessary references to compile.source and compile.target Since we are now using release, that overrides source and target. --- BUILDING.txt | 2 +- build.xml | 83 +++++++++++++++--------------------------------------------- 2 files changed, 22 insertions(+), 63 deletions(-) diff --git a/BUILDING.txt b/BUILDING.txt index 8ee2637..af3451e 100644 --- a/BUILDING.txt +++ b/BUILDING.txt @@ -35,7 +35,7 @@ source distribution, do the following: 1. If the JDK is already installed, skip to (2). - 2. Download a version 8 of Java Development Kit (JDK) release (use the + 2. Download a version 11 of Java Development Kit (JDK) release (use the latest update available for your chosen version) from one of: http://www.oracle.com/technetwork/java/javase/downloads/index.html diff --git a/build.xml b/build.xml index a51cbfb..4e88511 100644 --- a/build.xml +++ b/build.xml @@ -102,8 +102,6 @@ <property name="tomcat.xreflect" value="${tomcat.output}/xreflect"/> <!-- Servlet 4.0 spec requires Java 8+ --> - <property name="compile.source" value="8"/> - <property name="compile.target" value="8"/> <property name="compile.release" value="8"/> <property name="min.java.version" value="8"/> @@ -211,33 +209,6 @@ <defaultexcludes remove="**/.gitignore" /> <!--<defaultexcludes echo="true" />--> - <!-- Java 9 --> - <available classname="java.lang.reflect.InaccessibleObjectException" - property="java9.javadoc.options" - value="-html5"/> - <property name="java9.javadoc.options" value=""/> - - <available classname="java.lang.reflect.InaccessibleObjectException" - property="java9.test.option.1" - value="--add-opens=java.base/java.lang=ALL-UNNAMED"/> - <property name="java9.test.option.1" value="-Dtest.1=1"/> - <available classname="java.lang.reflect.InaccessibleObjectException" - property="java9.test.option.2" - value="--add-opens=java.base/java.io=ALL-UNNAMED"/> - <property name="java9.test.option.2" value="-Dtest.2=2"/> - <available classname="java.lang.reflect.InaccessibleObjectException" - property="java9.test.option.3" - value="--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"/> - <property name="java9.test.option.3" value="-Dtest.3=3"/> - <available classname="java.lang.reflect.InaccessibleObjectException" - property="java9.test.option.4" - value="--add-opens=java.base/java.util=ALL-UNNAMED"/> - <property name="java9.test.option.4" value="-Dtest.4=4"/> - <available classname="java.lang.reflect.InaccessibleObjectException" - property="java9.test.option.5" - value="--add-opens=java.base/java.util.concurrent=ALL-UNNAMED"/> - <property name="java9.test.option.5" value="-Dtest.5=5"/> - <!-- Classpaths --> <path id="compile.classpath"> <pathelement location="${bnd.jar}"/> @@ -915,8 +886,6 @@ <javac srcdir="java" destdir="${tomcat.classes}" debug="${compile.debug}" deprecation="${compile.deprecation}" - source="${compile.source}" - target="${compile.target}" release="${compile.release}" encoding="ISO-8859-1" includeAntRuntime="true" > @@ -970,8 +939,7 @@ <javac srcdir="java" destdir="${tomcat.classes}" debug="${compile.debug}" deprecation="${compile.deprecation}" - source="${compile.source}" - target="${compile.target}" + release="${compile.release}" encoding="ISO-8859-1" includeAntRuntime="true" > <!-- Uncomment this to show unchecked warnings: @@ -1004,8 +972,8 @@ <target name="build-manifests" unless="manifests.uptodate" depends="build-prepare"> <!-- Filtering tokens for JAR manifests--> - <filter token="source.jdk" value="${compile.source}"/> - <filter token="target.jdk" value="${compile.target}"/> + <filter token="source.jdk" value="${compile.release}"/> + <filter token="target.jdk" value="${compile.release}"/> <filter token="servlet.revision" value="${servlet.revision}"/> <filter token="jsp.revision" value="${jsp.revision}"/> <filter token="el.revision" value="${el.revision}"/> @@ -1485,8 +1453,6 @@ <javac srcdir="webapps/examples/WEB-INF/classes" destdir="${tomcat.build}/webapps/examples/WEB-INF/classes" debug="${compile.debug}" deprecation="${compile.deprecation}" - source="${compile.source}" - target="${compile.target}" release="${compile.release}" classpath="${tomcat.classes}" encoding="ISO-8859-1" @@ -1497,8 +1463,6 @@ <javac srcdir="webapps/examples/jsp/plugin/applet" destdir="${tomcat.build}/webapps/examples/jsp/plugin/applet" debug="${compile.debug}" deprecation="${compile.deprecation}" - source="${compile.source}" - target="${compile.target}" release="${compile.release}" classpath="${tomcat.classes}" encoding="ISO-8859-1" @@ -1734,8 +1698,7 @@ destdir="${xreflect.directory}/classes" debug="${compile.debug}" deprecation="${compile.deprecation}" - source="${compile.source}" - target="${compile.target}" + release="${compile.release}" encoding="ISO-8859-1" includeAntRuntime="true" > <compilerarg value="-XDignore.symbol.file"/> @@ -1821,8 +1784,6 @@ <javac srcdir="test" destdir="${test.classes}" debug="${compile.debug}" deprecation="${compile.deprecation}" - source="${compile.source}" - target="${compile.target}" release="${compile.release}" encoding="ISO-8859-1" includeantruntime="true"> @@ -1951,13 +1912,11 @@ <jvmarg value="-Djava.library.path=${test.apr.loc}"/> <jvmarg value="${test.formatter}"/> <jvmarg value="-Djava.net.preferIPv4Stack=${java.net.preferIPv4Stack}"/> - - <!-- Java 9 --> - <jvmarg value="${java9.test.option.1}"/> - <jvmarg value="${java9.test.option.2}"/> - <jvmarg value="${java9.test.option.3}"/> - <jvmarg value="${java9.test.option.4}"/> - <jvmarg value="${java9.test.option.5}"/> + <jvmarg value="--add-opens=java.base/java.lang=ALL-UNNAMED"/> + <jvmarg value="--add-opens=java.base/java.io=ALL-UNNAMED"/> + <jvmarg value="--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"/> + <jvmarg value="--add-opens=java.base/java.util=ALL-UNNAMED"/> + <jvmarg value="--add-opens=java.base/java.util.concurrent=ALL-UNNAMED"/> <classpath refid="tomcat.test.classpath" /> @@ -2164,8 +2123,8 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform. encoding="UTF-8" docencoding="UTF-8" charset="UTF-8" - additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}" - source="${compile.source}" + additionalparam="-breakiterator -notimestamp -html5" + source="${compile.release}" maxmemory="512m" failonerror="true" failonwarning="true"> @@ -2186,8 +2145,8 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform. encoding="UTF-8" docencoding="UTF-8" charset="UTF-8" - additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}" - source="${compile.source}" + additionalparam="-breakiterator -notimestamp -html5" + source="${compile.release}" maxmemory="512m" failonerror="true" failonwarning="true"> @@ -2207,8 +2166,8 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform. encoding="UTF-8" docencoding="UTF-8" charset="UTF-8" - additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}" - source="${compile.source}" + additionalparam="-breakiterator -notimestamp -html5" + source="${compile.release}" maxmemory="512m" failonerror="true" failonwarning="true"> @@ -2228,8 +2187,8 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform. encoding="UTF-8" docencoding="UTF-8" charset="UTF-8" - additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}" - source="${compile.source}" + additionalparam="-breakiterator -notimestamp -html5" + source="${compile.release}" maxmemory="512m" failonerror="true" failonwarning="true"> @@ -2249,8 +2208,8 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform. encoding="UTF-8" docencoding="UTF-8" charset="UTF-8" - additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}" - source="${compile.source}" + additionalparam="-breakiterator -notimestamp -html5" + source="${compile.release}" maxmemory="512m" failonerror="true" failonwarning="true"> @@ -2289,8 +2248,8 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform. encoding="UTF-8" docencoding="UTF-8" charset="UTF-8" - additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}" - source="${compile.source}" + additionalparam="-breakiterator -notimestamp -html5" + source="${compile.release}" maxmemory="512m" failonerror="true" failonwarning="true"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org