Skip to content

Commit bfc55d5

Browse files
committed
Using older exio for jdk17 on el7
1 parent a56e469 commit bfc55d5

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

jni/jnr-enxio.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,16 @@ if [ "0$JDK_MAJOR" -eq 8 ]; then
2222
fi
2323
JNR_LIVE_PROJECTS="jnr-enxio:0.32.18"
2424
patch=true
25+
srct=false
2526
if [ "0$JDK_MAJOR" -eq 17 ] ; then
2627
JNR_LIVE_PROJECTS="jnr-enxio:0.32.6"
2728
patch="true"
29+
if [ "0$OS_VERSION_MAJOR" -le 7 ] ; then
30+
JNR_LIVE_PROJECTS="jnr-enxio:0.24"
31+
patch="false"
32+
srct="true"
33+
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS --add-opens=java.base/java.io=ALL-UNNAMED"
34+
fi
2835
elif [ "0$JDK_MAJOR" -eq 11 ] ; then
2936
JNR_LIVE_PROJECTS="jnr-enxio:0.24"
3037
patch="false"
@@ -62,8 +69,10 @@ patch -p0 << EOF
6269
<artifactId>maven-bundle-plugin</artifactId>
6370
EOF
6471
fi
65-
# sed "s;<maven.compiler.source>.*;<maven.compiler.source>$JDK_MAJOR</maven.compiler.source>;" -i pom.xml
66-
# sed "s;<maven.compiler.target>.*;<maven.compiler.target>$JDK_MAJOR</maven.compiler.target>;" -i pom.xml
72+
if [ "x$srct" = "xtrue" ] ; then
73+
sed "s;<maven.compiler.source>.*;<maven.compiler.source>$JDK_MAJOR</maven.compiler.source>;" -i pom.xml
74+
sed "s;<maven.compiler.target>.*;<maven.compiler.target>$JDK_MAJOR</maven.compiler.target>;" -i pom.xml
75+
fi
6776
$EX_MVN $MVOPTS -Dmaven.javadoc.skip=true clean install
6877
popd
6978
done

0 commit comments

Comments
 (0)