geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1151226 - /geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/ClientCommandLine.java
Date Tue, 26 Jul 2011 20:29:35 GMT
Author: djencks
Date: Tue Jul 26 20:29:34 2011
New Revision: 1151226

URL: http://svn.apache.org/viewvc?rev=1151226&view=rev
Log:
client logging can tell us what is being started

Modified:
    geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/ClientCommandLine.java

Modified: geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/ClientCommandLine.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/ClientCommandLine.java?rev=1151226&r1=1151225&r2=1151226&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/ClientCommandLine.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/ClientCommandLine.java
Tue Jul 26 20:29:34 2011
@@ -59,14 +59,15 @@ public class ClientCommandLine extends C
     }
     
     public int execute(ClientCLParser parser) {
-        log.info("Client startup begun");
+        String applicationClientConfiguration = parser.getApplicationClientConfiguration();
+        log.info("Client startup begun of configuration: " + applicationClientConfiguration);
         try {
-            Artifact configuration = Artifact.create(parser.getApplicationClientConfiguration());
+            Artifact configuration = Artifact.create(applicationClientConfiguration);
             return startClient(configuration, parser.getApplicationClientArgs());
         } catch (Exception e) {
             ExceptionUtil.trimStackTrace(e);
-            if (e instanceof LifecycleException && ((LifecycleException)e).getCause()
instanceof NoSuchConfigException) {
-                log.error("The client is not found in server: " + ((NoSuchConfigException)((LifecycleException)e).getCause()).getConfigId());
+            if (e instanceof LifecycleException && e.getCause() instanceof NoSuchConfigException)
{
+                log.error("The client is not found in server: " + ((NoSuchConfigException)
e.getCause()).getConfigId());
             } else {
                 log.error("Client failed with exception: ", e);
             }



Mime
View raw message