wayneeseguin/rvm — Issue #627: PROJECT_JRUBY_OPTS doesn't work and JRUBY_OPTS gets unset.
Author: pbiggar
Created: 2011-12-03 18:16:56+00:00
State: open

My project .rvmrc was created by running `rvm --rvmrc --create`, and contains a commented-out line `PROJECT_JRUBY_OPTS=( --1.9 )`. I uncommented the line, expecting jruby to now use the --1.9 flag, but sadly it didn't work. I added `export JRUBY_OPTS=--1.9` to the end of my project .rvmrc, expecting it to be set, but it isn't. In fact, if I try to set either of these two flags, then run my .rvmrc flag, they get unset.

How do I get options passed to jruby? I suspect there must be some particular bug in my setup, because others have made it work (see http://stackoverflow.com/questions/8283300/how-do-i-use-jruby-opts-with-rvm).