From 38d57f547fb803911499707e6f06a7e20b3ea44b Mon Sep 17 00:00:00 2001 From: antelder Date: Sat, 7 Aug 2010 09:19:07 +0000 Subject: Update to have jline call bye not stop git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@983187 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sca-java-2.x') diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java index a4e179dfd0..e8fcd627e2 100644 --- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java +++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java @@ -29,7 +29,6 @@ import java.util.List; import jline.Completor; import jline.ConsoleReader; -import org.apache.tuscany.sca.runtime.ActivationException; import org.apache.tuscany.sca.shell.Shell; /** @@ -48,11 +47,7 @@ public class JLine { // Add a Ctrl-c listener reader.addTriggeredAction((char)3, new ActionListener() { public void actionPerformed(ActionEvent e) { - try { - shell.stop(null); - } catch (ActivationException e1) { - e1.printStackTrace(); - } + shell.bye(); System.exit(0); } }); -- cgit v1.2.3