Skip to content

Commit

Permalink
setup JAVA_TOOL_OPTIONS for compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Jan 14, 2015
1 parent a4a33fd commit 380c9aa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/language_pack/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,13 @@ def default_java_tool_options
# sets up the environment variables for the build process
def setup_language_pack_environment
instrument 'ruby.setup_language_pack_environment' do
ENV["PATH"] += ":bin" if ruby_version.jruby?
if ruby_version.jruby?
ENV["PATH"] += ":bin"
ENV["JAVA_TOOL_OPTIONS"] = run(<<-SHELL).chomp
#{set_jvm_max_heap}
echo #{default_java_tool_options}
SHELL
end
setup_ruby_install_env
ENV["PATH"] += ":#{node_bp_bin_path}" if node_js_installed?

Expand Down

0 comments on commit 380c9aa

Please sign in to comment.