Provide (or document if already provided) a way to change the JRuby mode to 1.9 
without using the command-line
--------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-5929
                 URL: https://jira.codehaus.org/browse/JRUBY-5929
             Project: JRuby
          Issue Type: Improvement
          Components: Interpreter
    Affects Versions: JRuby 1.6.3
         Environment: OSX + RVM
            Reporter: Austin Ziegler


During investigating another problem, the following did not do what was 
expected:

  jruby --1.9 -S rake test

With 'hoe', "rake test" shells out to Ruby (possibly with the Rake#ruby 
command, but also possibly with Rake#sh) and it does the following:

  full-path-to-jruby -w -Ilib:bin:test "require 'rubygems'; require 
'test/test1.rb'; require 'test/test2.rb'"

Because there's no MVM involved with this, --1.9 doesn't take effect, and it 
isn't part of what hoe puts together as the test command line. If there were an 
environment variable (or something) that could be set for jruby (and that --1.9 
sets implicitly for child processes) to enable Ruby 1.9 mode, this would work 
as expected.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to