I have 2 applications that must run JRuby 1.6.5 in 1.8 mode, and the other to run JRuby 1.6.7 in 1.9 mode. Is it possible to indicate in the application that I want one application to start in 1.9 mode without the need to explicitly set the JRUBY_OPTS environment variable. Inside .rvmrc, I could do the following:
proj_1_8 version of .rvmrc
unset JRUBY_OPTS
rvm use jruby-1.6.5@proj_1_8
proj_1_9 version of .rvmrc
export JRUBY_OPTS=--1.9
rvm use jruby-1.6.7@proj_1_9
In any case, can I automatically get the set mode without having to manually set / turn off the environment variable whenever I switch between projects?
source
share