geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r694136 - /geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
Date Thu, 11 Sep 2008 05:25:39 GMT
Author: jdillon
Date: Wed Sep 10 22:25:39 2008
New Revision: 694136

URL: http://svn.apache.org/viewvc?rev=694136&view=rev
Log:
Avoid ugly/confusing classworlds realm dumping

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=694136&r1=694135&r2=694136&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 Sep 10 22:25:39 2008
@@ -254,9 +254,16 @@
         System.exit(code);
     }
 
-    public static void main(final String[] args) throws Exception {
-        Main main = new Main();
-        main.boot(args);
+    public static void main(final String[] args) {
+        try {
+            Main main = new Main();
+            main.boot(args);
+        }
+        catch (Throwable t) {
+            // Avoid ugly/confusing classworlds muck when an exception occurs which is not
handled
+            t.printStackTrace(System.err);
+            System.err.flush();
+        }
     }
 }
 



Mime
View raw message