From a3eeda48b291f208ae4d27248eb111425f196ec6 Mon Sep 17 00:00:00 2001 From: Cameron Dutro Date: Fri, 14 Jun 2013 11:01:40 -0700 Subject: [PATCH] Jar path now avoids using a glob, which doesn't work inside a jar --- jar/rhino/jar_path.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jar/rhino/jar_path.rb b/jar/rhino/jar_path.rb index 83d24fd..c5fdf4e 100644 --- a/jar/rhino/jar_path.rb +++ b/jar/rhino/jar_path.rb @@ -1,5 +1,5 @@ module Rhino - JAR_PATH = Dir.glob( - File.expand_path('../rhino-*.jar', File.dirname(__FILE__)) - ).first + JAR_VERSION = '1.7.4'; version = JAR_VERSION.split('.') + jar_file = "rhino-#{version[0]}.#{version[1]}R#{version[2]}.jar" + JAR_PATH = File.expand_path("../#{jar_file}", File.dirname(__FILE__)) end \ No newline at end of file