This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 2b6e19e971a980e38bcd30f05c554d9b798666c0 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 | 82 +++++++++++++++--------------------------------------------- 2 files changed, 21 insertions(+), 63 deletions(-) diff --git a/BUILDING.txt b/BUILDING.txt index fc4af6f..1f3f324 100644 --- a/BUILDING.txt +++ b/BUILDING.txt @@ -36,7 +36,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 9597d3b..744eaab 100644 --- a/build.xml +++ b/build.xml @@ -102,8 +102,6 @@ <property name="tomcat.xreflect" value="${tomcat.output}/xreflect"/> <!-- Jakarta EE 9 specs 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}"/> @@ -916,8 +887,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" > @@ -971,8 +940,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" > @@ -1005,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.spec.version" value="${servlet.spec.version}"/> <filter token="servlet.revision" value="${servlet.revision}"/> <filter token="jsp.spec.version" value="${jsp.spec.version}"/> @@ -1503,8 +1470,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" @@ -1515,8 +1480,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" @@ -1752,8 +1715,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"/> @@ -1839,8 +1801,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"> @@ -1969,13 +1929,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" /> @@ -2182,8 +2140,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"> @@ -2204,8 +2162,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"> @@ -2225,8 +2183,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"> @@ -2246,8 +2204,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"> @@ -2267,8 +2225,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"> @@ -2307,8 +2265,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