1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00

Jar path now avoids using a glob, which doesn't work inside a jar

This commit is contained in:
Cameron Dutro 2013-06-14 11:01:40 -07:00 committed by kares
parent b169814ed9
commit a3eeda48b2

View file

@ -1,5 +1,5 @@
module Rhino module Rhino
JAR_PATH = Dir.glob( JAR_VERSION = '1.7.4'; version = JAR_VERSION.split('.')
File.expand_path('../rhino-*.jar', File.dirname(__FILE__)) jar_file = "rhino-#{version[0]}.#{version[1]}R#{version[2]}.jar"
).first JAR_PATH = File.expand_path("../#{jar_file}", File.dirname(__FILE__))
end end