<NME> logstash.java
<BEF> ADDFILE
<MSG> - add java launcher to work around JRUBY-6015. (LOGSTASH-158)

<DFF> @@ -0,0 +1,33 @@
+/* This is the runner for logstash when it is packed up in a jar file. 
+ * It exists to work around http://jira.codehaus.org/browse/JRUBY-6015
+ */
+package net.logstash;
+import org.jruby.embed.ScriptingContainer;
+import org.jruby.embed.PathType;
+import org.jruby.CompatVersion;
+import java.io.InputStream;
+
+public class logstash {
+  private ScriptingContainer container;
+
+  public static void main(String[] args) {
+    // Malkovich malkovich? Malkovich!
+    logstash logstash = new logstash();
+    logstash.run(args);
+  } /* void main */
+
+
+  public logstash() {
+    this.container = new ScriptingContainer();
+    this.container.setCompatVersion(CompatVersion.RUBY1_9);
+  }
+
+  public void run(String[] args) {
+    ClassLoader loader = this.getClass().getClassLoader();
+    InputStream script = loader.getResourceAsStream("logstash/runner.rb");
+    //container.runScriptlet(PathType.RELATIVE, "logstash/runner.rb");
+    this.container.setArgv(args);
+    this.container.runScriptlet(script, "logstash/runner.rb");
+  }
+}
+

- add java launcher to work around JRUBY-6015. (LOGSTASH-158)