forked from apache/tomee-tck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava11.source
More file actions
19 lines (15 loc) · 776 Bytes
/
java11.source
File metadata and controls
19 lines (15 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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="-Dcontainer.java.home=$JAVA_11_HOME -Dcontainer.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/'
}