You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ge...@apache.org on 2009/12/30 08:54:39 UTC

svn commit: r894560 - /geronimo/server/trunk/framework/modules/geronimo-shell-base/src/main/java/org/apache/geronimo/shell/BaseCommandSupport.java

Author: genspring
Date: Wed Dec 30 07:54:39 2009
New Revision: 894560

URL: http://svn.apache.org/viewvc?rev=894560&view=rev
Log:
GERONIMO-4948 To migrate existing geronimo gshell commands to karaf based shell. --- convert tab to 4 spaces in the code.

Modified:
    geronimo/server/trunk/framework/modules/geronimo-shell-base/src/main/java/org/apache/geronimo/shell/BaseCommandSupport.java

Modified: geronimo/server/trunk/framework/modules/geronimo-shell-base/src/main/java/org/apache/geronimo/shell/BaseCommandSupport.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-shell-base/src/main/java/org/apache/geronimo/shell/BaseCommandSupport.java?rev=894560&r1=894559&r2=894560&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-shell-base/src/main/java/org/apache/geronimo/shell/BaseCommandSupport.java (original)
+++ geronimo/server/trunk/framework/modules/geronimo-shell-base/src/main/java/org/apache/geronimo/shell/BaseCommandSupport.java Wed Dec 30 07:54:39 2009
@@ -36,31 +36,31 @@
 
     private PrintWriter printWriter = null;
     private BufferedReader lineReader = null;
-	
-	
-	/**
+    
+    
+    /**
      * Create printWriter and lineReader for the session
      *
      */
-	private void init(){	
-	    
+    private void init(){    
+        
         if (printWriter == null)
             printWriter = new PrintWriter(session.getConsole(), true);
 
         if (lineReader == null)
             lineReader = new BufferedReader(new InputStreamReader(session.getKeyboard()));
-	}
-	
-	
-	
-	/**
+    }
+    
+    
+    
+    /**
      * Print an end-of-line marker.
      *
      * @exception IOException
      */
     public void printNewline() throws IOException {
-    	init();
-    	printWriter.println();
+        init();
+        printWriter.println();
     }
 
 
@@ -70,8 +70,8 @@
      * @param data   The line to write.
      */
     public void println(String data) {
-    	init();
-    	printWriter.println(data);
+        init();
+        printWriter.println(data);
     }
 
 
@@ -81,8 +81,8 @@
      * @param data   The line to write.
      */
     public void printString(String data) {
-    	init();
-    	printWriter.print(data);
+        init();
+        printWriter.print(data);
     }
 
 
@@ -117,7 +117,7 @@
      * @exception IOException
      */
     public void flushConsole() throws IOException {
-    	init();
-    	printWriter.flush();
+        init();
+        printWriter.flush();
     }
 }