Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

JRUBY-4327: JIRB in signed-jirb.jnlp is broken

This also fixes the problem with jirb_swing, when
it is launched by jrubyw (missing prompt).
  • Loading branch information...
commit 3d51e604135b8f0f9af3061daddbbb675e100ff5 1 parent 02b57d4
@vvs vvs authored
View
5 bin/jirb_swing
@@ -8,6 +8,11 @@ require 'jruby'
require 'irb'
require 'irb/completion'
+if ARGV.empty?
+ # default options, esp. useful for jrubyw
+ ARGV << '--readline' << '--prompt' << 'inf-ruby'
+end
+
import java.awt.Color
import java.awt.Font
import javax.swing.JFrame
View
2  samples/jnlp/jirb.jnlp
@@ -5,7 +5,7 @@
<vendor>The JRuby Team</vendor>
<description>Sample WebStart Application with JRuby</description>
<description kind="short">JRuby IRB Console Sample</description>
- <homepage href="http://jruby.codehaus.org/"/>
+ <homepage href="http://jruby.org/"/>
</information>
<resources>
<j2se version="1.5+"/>
View
2  samples/jnlp/signed-jirb.jnlp
@@ -5,7 +5,7 @@
<vendor>The JRuby Team</vendor>
<description>Sample JRuby Signed Java Web Start Application</description>
<description kind="short">JRuby IRB Console Sample</description>
- <homepage href="http://jruby.codehaus.org/"/>
+ <homepage href="http://jruby.org/"/>
</information>
<security>
<all-permissions/>
View
5 src/org/jruby/demo/IRBConsole.java
@@ -72,7 +72,10 @@ public void windowClosing(WindowEvent e) {
Thread t2 = new Thread() {
public void run() {
console.setVisible(true);
- runtime.evalScriptlet("require 'irb'; require 'irb/completion'; IRB.start");
+ runtime.evalScriptlet(
+ "ARGV << '--readline' << '--prompt' << 'inf-ruby';"
+ + "require 'irb'; require 'irb/completion';"
+ + "IRB.start");
}
};
t2.start();
Please sign in to comment.
Something went wrong with that request. Please try again.