Expose JRuby command line argument processing to the JavaEmbedUtils API -----------------------------------------------------------------------
Key: JRUBY-2583 URL: http://jira.codehaus.org/browse/JRUBY-2583 Project: JRuby Issue Type: Bug Components: Embedding Affects Versions: JRuby 1.1.1 Environment: N/A Reporter: Matt Fletcher The JavaEmbedUtils API does not have anything like an initialize() method that accepts command line JRuby arguments when starting the runtime. Here is a paste from the mailing list discussion: Matt Fletcher wrote: The method I posted below that uses org.jruby.Main.main allows me to pass JRuby arguments, like -r, -e, etc. as if they were from the command line. Is there any way to do the equivalent with the technique you posted? I took a look at JavaEmbedUtils and RubyRuntimeAdapter but nothing stood out to me. Maybe I need to do something with that Ruby runtime? Charles Nutter wrote: Well the short answer is "not easily". But if you look at RubyInstanceConfig, accessible from runtime.getInstanceConfig, I think you might get some ideas. That's where command-line processing happens, so it's possible we could expose that in a nicer JavaEmbedUtils API. -- 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