geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r659017 - /geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
Date Thu, 22 May 2008 06:27:20 GMT
Author: jdillon
Date: Wed May 21 23:27:20 2008
New Revision: 659017

URL: http://svn.apache.org/viewvc?rev=659017&view=rev
Log:
Don't warn about abnormal shutdown when silent

Modified:
    geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java

Modified: geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java?rev=659017&r1=659016&r2=659017&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
(original)
+++ geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
Wed May 21 23:27:20 2008
@@ -235,8 +235,10 @@
                     // Give the user a warning when the JVM shutdown abnormally, normal shutdown
                     // will set an exit code through the proper channels
 
-                    io.err.println();
-                    io.err.println("WARNING: Abnormal JVM shutdown detected");
+                    if (!io.isSilent()) {
+                        io.err.println();
+                        io.err.println("WARNING: Abnormal JVM shutdown detected");
+                    }
                 }
 
                 io.flush();



Mime
View raw message