tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r983187 - /tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java
Date Sat, 07 Aug 2010 09:19:08 GMT
Author: antelder
Date: Sat Aug  7 09:19:07 2010
New Revision: 983187

URL: http://svn.apache.org/viewvc?rev=983187&view=rev
Log:
Update to have jline call bye not stop

Modified:
    tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java

Modified: tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java?rev=983187&r1=983186&r2=983187&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/JLine.java
Sat Aug  7 09:19:07 2010
@@ -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);
             }
         });



Mime
View raw message