can't exec irb from jruby-complete.jar / main script can't be in a jar file
---------------------------------------------------------------------------

                 Key: JRUBY-3923
                 URL: http://jira.codehaus.org/browse/JRUBY-3923
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.3.1
            Reporter: Rib Rdb
         Attachments: RubyInstanceConfig.patch

When you exec "irb" inside jruby-complete.jar, it tries to use a path for the 
main script that's a url within a jar file. This works for normal requires, but 
not for the main script.

$ java -cp jruby-complete.jar org.jruby.Main -e 'exec "irb"'
Error opening script file: 
/Users/ribrdb/file:/Users/ribrdb/jruby-complete.jar!/META-INF/jruby.home/bin/jirb
 (No such file or directory)

patch attached:
java -cp lib/jruby-complete.jar org.jruby.Main -e 'exec "irb"'
irb(main):001:0>

-- 
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


Reply via email to