Skip to content

Commit

Permalink
Merge pull request #204 from sbt/wip/java8-script-warnings
Browse files Browse the repository at this point in the history
FIX #203 Adding check for java 8
  • Loading branch information
muuki88 committed Mar 30, 2014
2 parents 55541a7 + daad0bb commit 8b7882e
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 8b7882e

Please sign in to comment.