Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
special semicolon syntax in JVMVersion key to specify a max JVM req…
Browse files Browse the repository at this point in the history
…uirement

refs #51
  • Loading branch information
tofi86 committed Feb 11, 2018
1 parent 7202a38 commit 71f9802
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/universalJavaApplicationStub
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# #
# @author Tobias Fischer #
# @url https://github.com/tofi86/universalJavaApplicationStub #
# @date 2018-01-07 #
# @date 2018-02-11 #
# @version 2.1.0 #
# #
##################################################################################
Expand Down Expand Up @@ -106,6 +106,7 @@ InfoPlistFile="${AppPackageFolder}"/Contents/Info.plist

# set the default JVM Version to a null string
JVMVersion=""
JVMMaxVersion=""



Expand Down Expand Up @@ -225,6 +226,13 @@ if [ $exitcode -eq 0 ]; then

# read the Java version we want to find
JVMVersion=$(plist_get_java ':JVMVersion' | xargs)
if [[ ${JVMVersion} == *";"* ]]; then
minMaxArray=(${JVMVersion//;/ })
JVMVersion=$(echo ${minMaxArray[0]} | sed 's/+//')
JVMMaxVersion=$(echo ${minMaxArray[1]} | sed 's/+//')
stub_logger "[JavaRequirement] JVM minimum version: ${JVMVersion}"
stub_logger "[JavaRequirement] JVM maximum version: ${JVMMaxVersion}"
fi


# read 'Info.plist' file in Oracle style
Expand Down

0 comments on commit 71f9802

Please # to comment.