Only print 'relaunching' if run under debug.

Fixes #1995
This commit is contained in:
Jordan Sissel 2014-10-30 21:17:17 +00:00
parent eb0b218c8c
commit 0bb8f06f42

View file

@ -1,6 +1,6 @@
if ENV['USE_RUBY'] != '1'
if RUBY_ENGINE != "jruby" or Gem.ruby !~ /vendor\/jruby\/bin\/jruby/
puts "Restarting myself under Vendored JRuby (currently #{RUBY_ENGINE} #{RUBY_VERSION})"
puts "Restarting myself under Vendored JRuby (currently #{RUBY_ENGINE} #{RUBY_VERSION})" if $DEBUG
# Make sure we have JRuby, then rerun ourselves under jruby.
Rake::Task["vendor:jruby"].invoke