#7700 ignore ENV JAVA_OPTS in rake tasks

Fixes #7785
This commit is contained in:
Armin 2017-07-24 16:14:20 +02:00 committed by Armin Braun
parent 933919367a
commit 10a72ce015

View file

@ -32,6 +32,8 @@ if ENV['USE_RUBY'] != '1'
# if required at this point system gems can be installed using the system_gem task, for example:
# Rake::Task["vendor:system_gem"].invoke(jruby, "ffi", "1.9.6")
# Ignore Environment JAVA_OPTS
ENV["JAVA_OPTS"] = ""
exec(jruby, "-J-Xmx1g", "-S", rake, *ARGV)
end
end