Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.1
-
Fix Version/s: JRuby 1.1.2
-
Component/s: Miscellaneous
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
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
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Nick Sieger [ nsieger ] | |
| Affects Version/s | JRuby 1.1.1 [ 14157 ] | |
| Fix Version/s | JRuby 1.1.2 [ 14210 ] |
Nick Sieger
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |