Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rakelib/test.rake
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ namespace :test do

max_meta_size = ENV_JAVA['java.specification.version'] > '1.7' ? '-XX:MaxMetaspaceSize' : '-XX:MaxPermSize'
get_meta_size = proc do |default_size = 452|
ENV['JAVA_OPTS'].index(max_meta_size) || ENV['JRUBY_OPTS'].index(max_meta_size) ?
(ENV['JAVA_OPTS'] || '').index(max_meta_size) || (ENV['JRUBY_OPTS'] || '').index(max_meta_size) ?
'' : "-J#{max_meta_size}=#{default_size}M"
end

0 comments on commit fe1ff12

Please sign in to comment.