Unable to run scripts using -S if they aren't in the primary jruby.jar
----------------------------------------------------------------------

                 Key: JRUBY-5073
                 URL: http://jira.codehaus.org/browse/JRUBY-5073
             Project: JRuby
          Issue Type: Bug
          Components: Miscellaneous
    Affects Versions: JRuby 1.5.2
            Reporter: Eric Anderson


I am attempting to create a gem called 
[Jarbler|http://github.com/ericanderson/Jarbler]. One of my goals is to make it 
very simple to take Gemfile's and set them up to be embedded in a jar.

Unfortunately, the "-S script" command line doesn't want to let me run my 
commands. Even trying [Nick Sieger's Gem in a 
Jar|http://blog.nicksieger.com/articles/2009/01/10/jruby-1-1-6-gems-in-a-jar] 
fails.

After reviewing the code, I thought putting them in my own jar, in the path: 
/META-INF/jruby.home/bin would solve the problem, however jruby.home is 
resolved down to a jar:// style path for the primary jar.

I have modified the RubyInstanceConfig to stop trying to be smart and to just 
use classpath:/META-INF/jruby.home/ when nothing is configured.

All tests pass. The issue is resolved.

Changeset: 
http://github.com/ericanderson/jruby/commit/523da7926974b32263bbc26b5402cddac56c8eca



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