geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r410207 - in /geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console: JLineConsole.java SimpleConsole.java
Date Tue, 30 May 2006 07:43:28 GMT
Author: jdillon
Date: Tue May 30 00:43:27 2006
New Revision: 410207

URL: http://svn.apache.org/viewvc?rev=410207&view=rev
Log:
Readers exposed for advanced usage, mostly related to jline bits

Modified:
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/SimpleConsole.java

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java?rev=410207&r1=410206&r2=410207&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java
Tue May 30 00:43:27 2006
@@ -33,7 +33,7 @@
     private static final Log log = LogFactory.getLog(SimpleConsole.class);
 
     private final IO io;
-    
+
     private final ConsoleReader reader;
 
     public JLineConsole(final IO io) throws IOException {
@@ -49,5 +49,9 @@
         assert prompt != null;
 
         return reader.readLine(prompt);
+    }
+
+    public ConsoleReader getReader() {
+        return reader;
     }
 }

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/SimpleConsole.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/SimpleConsole.java?rev=410207&r1=410206&r2=410207&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/SimpleConsole.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/SimpleConsole.java
Tue May 30 00:43:27 2006
@@ -33,7 +33,7 @@
     private static final Log log = LogFactory.getLog(SimpleConsole.class);
 
     private final IO io;
-    
+
     private final BufferedReader reader;
 
     public SimpleConsole(final IO io) {
@@ -52,5 +52,9 @@
         io.out.flush();
 
         return reader.readLine();
+    }
+
+    public BufferedReader getReader() {
+        return reader;
     }
 }



Mime
View raw message