Do not use ruby 1.9 and do not bother setting paths

This commit is contained in:
Rajat Venkatesh 2016-01-31 18:26:34 +05:30
parent 9924784ed6
commit 3efc892bb2

View file

@ -78,7 +78,6 @@ public class HbaseInterpreter extends Interpreter {
this.scriptingContainer = new ScriptingContainer(LocalContextScope.SINGLETON);
this.writer = new StringWriter();
scriptingContainer.setOutput(this.writer);
scriptingContainer.setCompatVersion(org.jruby.CompatVersion.RUBY1_9);
if (!Boolean.parseBoolean(getProperty("hbase.test.mode"))) {
String hbase_home = getProperty("hbase.home");
@ -94,9 +93,6 @@ public class HbaseInterpreter extends Interpreter {
+ "'");
}
List<String> paths = new ArrayList<>(Arrays.asList(abs_ruby_src.toAbsolutePath().toString()));
this.scriptingContainer.setLoadPaths(paths);
logger.info("Absolute Ruby Source:" + abs_ruby_src.toString());
// hirb.rb:41 requires the following system property to be set.
Properties sysProps = System.getProperties();