rubygems cannot expand the load path when embedded via ScriptingContainer -------------------------------------------------------------------------
Key: JRUBY-4604 URL: http://jira.codehaus.org/browse/JRUBY-4604 Project: JRuby Issue Type: Bug Components: Embedding Affects Versions: JRuby 1.4 Reporter: Stuart Halloway Rubygems' ability to expand the load path appears not to work when loading JRuby via ScriptingContainer (see example below). The same code works fine in an interactive Ruby session. I saw this behavior with 1.4.0, and yokolet confirmed it on 1.5.0.dev as well. ;; loading ActiveSupport from Clojure ;; (your chocolate is in my peanut butter) ;; if JRUBY_HOME reasonable, loading rubygems works ;; but loading active_support does not (do (import org.jruby.embed.ScriptingContainer) (let [sc (ScriptingContainer.)] (.runScriptlet sc "require \"rubygems\"; require \"active_suport\""))) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - 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