geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r410212 - /geronimo/sandbox/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
Date Tue, 30 May 2006 08:03:37 GMT
Author: jdillon
Date: Tue May 30 01:03:36 2006
New Revision: 410212

URL: http://svn.apache.org/viewvc?rev=410212&view=rev
Log:
Time the startup

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

Modified: geronimo/sandbox/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java?rev=410212&r1=410211&r2=410212&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
Tue May 30 01:03:36 2006
@@ -24,6 +24,9 @@
 import org.apache.commons.cli.PosixParser;
 import org.apache.commons.cli.Options;
 import org.apache.commons.cli.HelpFormatter;
+import org.apache.commons.lang.time.StopWatch;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 import org.apache.geronimo.gshell.GShell;
 import org.apache.geronimo.gshell.console.IO;
@@ -82,6 +85,9 @@
     public void run(final String[] args) throws Exception {
         assert args != null;
 
+        StopWatch watch = new StopWatch();
+        watch.start();
+
         Options options = new Options();
 
         options.addOption(OptionBuilder.withLongOpt("help")
@@ -173,6 +179,9 @@
             interactive = true;
         }
 
+        // Its okay to use logging now
+        Log log = LogFactory.getLog(Main.class);
+
         //
         // TODO: Need to pass GShell the ClassWorld, so that the application can add to it
if needed
         //
@@ -185,6 +194,8 @@
         if (_args.length == 0) {
             interactive = true;
         }
+
+        log.debug("Started in " + watch);
 
         if (interactive) {
             //



Mime
View raw message