Extract into jruby.home from jar: url
-------------------------------------
Key: JRUBY-1574
URL: http://jira.codehaus.org/browse/JRUBY-1574
Project: JRuby
Issue Type: Improvement
Components: Miscellaneous
Reporter: Adam Payne
Priority: Minor
Attachments: extract.rb.patch
Current jruby/extract.rb in trunk uses a regex on __FILE__ to determine the
path to the jruby-complete.jar, and then opens it with java.util.zip.ZipFile,
but this only works when jruby-complete.jar is run from a file: url, ie not
when loaded over any sort of http connection. New method uses
ClassLoader.getResource to determine the url of the JAR file, and then uses
java.net.URL.openConnection.jar_file to open a JarFile descendant of ZipFile.
It only copies jruby-complete.jar to jruby.home/lib if it was found at a file:
url. Patch modifies trunk/jruby/src/jruby/extract.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