[Git][java-team/jabref][master] Wrapper will skip Java 9 options when Java 8 runtime is detected
Tony Mancill
gitlab at salsa.debian.org
Mon Jun 18 05:46:09 BST 2018
Tony Mancill pushed to branch master at Debian Java Maintainers / jabref
Commits:
095bbd9b by tony mancill at 2018-06-17T21:45:35-07:00
Wrapper will skip Java 9 options when Java 8 runtime is detected
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900356
- - - - -
1 changed file:
- debian/jabref-wrapper
Changes:
=====================================
debian/jabref-wrapper
=====================================
--- a/debian/jabref-wrapper
+++ b/debian/jabref-wrapper
@@ -6,9 +6,12 @@
# We need a java8 runtime (at least)
find_java_runtime java8
-# We need some options to start this version on openjdk9 and later
-# See http://discourse.jabref.org/t/cannot-start-jabref-3-7-3-6-using-java-9-on-ubuntu-16-04/361/8
-JABREF_JAVA_OPTS=${JABREF_JAVA_OPTS-"--add-modules=java.se.ee --add-opens=java.desktop/java.awt=ALL-UNNAMED"}
+JAVA_VERSION=$(run_java -version 2>&1 | grep ' version ' | awk '{print $3}')
+if ! ( echo "$JAVA_VERSION" | grep -q '1.8.0' ) ; then
+ # We need some options to start this version on openjdk9 and later
+ # See http://discourse.jabref.org/t/cannot-start-jabref-3-7-3-6-using-java-9-on-ubuntu-16-04/361/8
+ JABREF_JAVA_OPTS=${JABREF_JAVA_OPTS-"--add-modules=java.se.ee --add-opens=java.desktop/java.awt=ALL-UNNAMED"}
+fi
find_jars \
jabref \
View it on GitLab: https://salsa.debian.org/java-team/jabref/commit/095bbd9b0307b3af71506d8568334d53399aa610
--
View it on GitLab: https://salsa.debian.org/java-team/jabref/commit/095bbd9b0307b3af71506d8568334d53399aa610
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20180618/451b5ba8/attachment.html>
More information about the pkg-java-commits
mailing list