assets/src/org/ruboto/JRubyAdapter.java in ruboto-1.1.2 vs assets/src/org/ruboto/JRubyAdapter.java in ruboto-1.2.0
- old
+ new
@@ -301,9 +301,13 @@
runScriptlet("::RUBOTO_JAVA_PROXIES = {}");
System.out.println("JRuby version: " + Class.forName("org.jruby.runtime.Constants", true, scriptingContainerClass.getClassLoader())
.getDeclaredField("VERSION").get(String.class));
+ // TODO(uwe): Add a way to display startup progress.
+ put("$application_context", appContext.getApplicationContext());
+ runScriptlet("begin\n require 'environment'\nrescue LoadError => e\n puts e\nend");
+
initialized = true;
} catch (ClassNotFoundException e) {
handleInitException(e);
} catch (IllegalArgumentException e) {
handleInitException(e);