Skip to content

Commit

Permalink
FIX #203 Adding check for java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
muuki88 committed Mar 28, 2014
1 parent 55541a7 commit daad0bb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ get_mem_opts () {
# The reason is the Xms/Xmx, if they don't line up, cause errors.
if [[ "${java_opts}" == *-Xmx* ]] || [[ "${java_opts}" == *-Xms* ]] || [[ "${java_opts}" == *-XX:MaxPermSize* ]] || [[ "${java_opts}" == *-XX:ReservedCodeCacheSize* ]]; then
echo ""
elif [[ !$no_java_version_check ]] && [[ java_version > "1.8" ]]; then
echo "-Xms${mem}m -Xmx${mem}m -XX:ReservedCodeCacheSize=${codecache}m"
else
echo "-Xms${mem}m -Xmx${mem}m -XX:MaxPermSize=${perm}m -XX:ReservedCodeCacheSize=${codecache}m"
fi
Expand Down

0 comments on commit daad0bb

Please sign in to comment.