jruby-4611 fix introduces JVM option bug ----------------------------------------
Key: JRUBY-4674 URL: http://jira.codehaus.org/browse/JRUBY-4674 Project: JRuby Issue Type: Bug Components: Launcher Affects Versions: JRuby 1.5 Environment: Windows, jruby-launcher (tree:b774fec/2010-03-01) Reporter: Kim, Jongsu Assignee: Thomas E Enebo Priority: Minor -r and -I options allow optional white spaces. But JRUBY-4611 fix has new bug. {color:red} jruby.exe -r bar -J-verbose foo.rb {color} generates {color:red} jruby: unknown option -J-verbose {color} In contrast, the following commands work. {color:blue} jruby.exe -r bar foo.rb jruby.exe -J-verbose -r bar foo.rb {color} The following commands work, of course. {color:blue} jruby.exe -rbar -J-verbose foo.rb jruby.exe -J-verbsee -rbar foo.rb jruby.exe -rbar foo.rb {color} The fix stops scanning for options from 'bar' because 'bar' does not start with '-', and jruby does not recognize JVM option -J. -- 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