geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r697460 - /geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellImpl.java
Date Sun, 21 Sep 2008 08:45:09 GMT
Author: jdillon
Date: Sun Sep 21 01:45:09 2008
New Revision: 697460

URL: http://svn.apache.org/viewvc?rev=697460&view=rev
Log:
Ensure opened for online operations

Modified:
    geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellImpl.java

Modified: geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellImpl.java?rev=697460&r1=697459&r2=697460&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellImpl.java
(original)
+++ geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellImpl.java
Sun Sep 21 01:45:09 2008
@@ -71,7 +71,7 @@
     public Variables getVariables() {
         ensureOpened();
 
-        throw new Error();
+        throw new UnsupportedOperationException();
     }
 
     public ShellInfo getInfo() {
@@ -81,14 +81,20 @@
     }
 
     public IO getIo() {
+        ensureOpened();
+
         throw new UnsupportedOperationException();
     }
 
     public CommandLineExecutor getExecutor() {
+        ensureOpened();
+
         return executor;
     }
 
     public void run(final Object... args) throws Exception {
+        ensureOpened();
+        
         throw new UnsupportedOperationException();
     }
 



Mime
View raw message