fix forbidden-apis for jdk10+

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1832979 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2018-06-05 23:29:09 +00:00
parent 3077257645
commit 7c379494aa
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ poijobs.each { poijob ->
label(slaves)
environmentVariables {
env('LANG', 'en_US.UTF-8')
if(jdkKey == '1.9') {
if(jdkKey == '1.9' || jdkKey == '1.10' || jdkKey == '1.11') {
// when using JDK 9 for running Ant, we need to provide more packages for the forbidden-api-checks task
env('ANT_OPTS', '--add-modules=java.xml.bind --add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED')
}