Skip to content

Commit cdfc79e

Browse files
committed
fixed classpath for standard ruby libs. jruby 9000 specific
1 parent f8eac62 commit cdfc79e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

RubyScript/lib/download.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,11 @@ def download(url, fn)
4747

4848
# ****************** download jruby ***********************
4949
download JRUBY_SRC, jruby_zip
50-
`unzip -j #{jruby_zip} jruby-9.0.0.0/lib/jruby.jar`
50+
51+
jruby_lib = "jruby-#{VERSION}/lib/"
52+
#`unzip -j #{jruby_zip} #{jruby_lib}/jruby.jar`
53+
`unzip #{jruby_zip}`
54+
%w(ruby jruby.jar).each { |file| `mv -v #{jruby_lib + file} ./` }
55+
5156
File.delete jruby_zip
57+
`rm -r jruby-#{VERSION}`

0 commit comments

Comments
 (0)