Resources from JAR
------------------

                 Key: JRUBY-2504
                 URL: http://jira.codehaus.org/browse/JRUBY-2504
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1
         Environment: Linux, x86
            Reporter: Andrey Sitnik


When some ruby program is packaged in JAR it often can't be work, because 
IO.open, Dir.entries, etc didn't see into JAR.

require() is working in JAR normal, and it's cool, but some program use 
{{Dir.glob("/core_ext/*.rb")}} before require some files. And default config 
can't be loaded by {{YAML::load_file()}} .

___FILE___ return path to Ruby script, which isn't exists. For example, if a 
{{/home/ai/test.jar}} contain {{one.rb}} with
{code}puts File.expand_path(__FILE__){code}
{{java -jar test.jar}} will return "{{/home/ai/one.rb}}"

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