geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yunfen...@apache.org
Subject svn commit: r682591 - /geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/configmanager/DeploymentPortlet.java
Date Tue, 05 Aug 2008 06:05:55 GMT
Author: yunfengma
Date: Mon Aug  4 23:05:55 2008
New Revision: 682591

URL: http://svn.apache.org/viewvc?rev=682591&view=rev
Log:
GERONIMO-4227 Incorrect message is show even if the deployment failed in the web console

Modified:
    geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/configmanager/DeploymentPortlet.java

Modified: geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/configmanager/DeploymentPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/configmanager/DeploymentPortlet.java?rev=682591&r1=682590&r2=682591&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/configmanager/DeploymentPortlet.java
(original)
+++ geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/configmanager/DeploymentPortlet.java
Mon Aug  4 23:05:55 2008
@@ -161,7 +161,12 @@
                         while(progress.getDeploymentStatus().isRunning()) {
                             Thread.sleep(100);
                         }
-                        abbrStatusMessage+="The application was successfully started";
+                        if (progress.getDeploymentStatus().isCompleted()) {
+                            abbrStatusMessage += "The application was successfully started";
+                        } else {
+                            abbrStatusMessage += "The application was not successfully started";
+                            fullStatusMessage = progress.getDeploymentStatus().getMessage();
+                        }
                     }
                 } else {
                     fullStatusMessage = progress.getDeploymentStatus().getMessage();



Mime
View raw message