felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From db...@apache.org
Subject svn commit: r944169 - /felix/trunk/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java
Date Fri, 14 May 2010 09:29:29 GMT
Author: dbaum
Date: Fri May 14 09:29:28 2010
New Revision: 944169

URL: http://svn.apache.org/viewvc?rev=944169&view=rev
Log:
removed gosh:shutdown command. stop 0 works fine.

Modified:
    felix/trunk/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java

Modified: felix/trunk/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java?rev=944169&r1=944168&r2=944169&view=diff
==============================================================================
--- felix/trunk/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java (original)
+++ felix/trunk/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java Fri May 14
09:29:28 2010
@@ -38,7 +38,7 @@ import org.osgi.service.command.CommandS
 
 public class Shell
 {
-    static final String[] functions = { "gosh", "sh", "shutdown", "source", "telnetd" };
+    static final String[] functions = { "gosh", "sh", "source", "telnetd" };
 
     private final static URI CWD = new File(".").toURI();
 
@@ -167,6 +167,7 @@ public class Shell
 
         if (login && !opt.isSet("noshutdown"))
         {
+            System.out.println("gosh: stopping framework");
             shutdown();
         }
 
@@ -178,7 +179,7 @@ public class Shell
         return gosh(session, argv);
     }
 
-    public void shutdown() throws BundleException
+    private void shutdown() throws BundleException
     {
         context.getBundle(0).stop();
     }



Mime
View raw message