This is an automated email from the ASF dual-hosted git repository. jlmonteiro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomee-tck.git
commit 1a88f456dbc669e3b83528db46ed6d0c852bae52 Author: Jean-Louis Monteiro <[email protected]> AuthorDate: Tue Jul 30 12:11:32 2019 +0200 Java 11 support to run the web container --- java11.source | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/java11.source b/java11.source new file mode 100644 index 0000000..3caba86 --- /dev/null +++ b/java11.source @@ -0,0 +1,19 @@ +#! /bin/bash + +# +# to test against java 9 TCKs we run the TCK themself with java 7/8 and the container with java 9 +# +# You can validate it with `tomeeTckCheckJavaRunVersion` once you ran some TCK. +# +# Note: this is mainly to not have to migrate this project yet to java 9 (upgrading groovy plugin and groovy itself). +# + +tomee_version=8.0.0-SNAPSHOT + +# we run tck with java 7 for the runner (javatest jvm) but java 9 for the server +export MAVEN_OPTS="-Dtck.java.home=$JAVA_11_HOME -Dtck.java.version=11 -Dopenejb.groupId=org.apache.tomee -Dopenejb.version=$tomee_version -Dtomee.version=$tomee_version" +echo "MAVEN_OPTS set for java 11" + +function tomeeTckCheckJavaRunVersion() { + grep 'JVM Version' target/logs/javatest.log | sed 's/.*JVM Version/JVM Version/' +}
