[jboss-cvs] JBossAS SVN: r112134 - branches/JBPAPP_5_1_JBPAPP-6716/system-jmx/src/main/org/jboss/deployment.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 26 02:38:34 EDT 2011


Author: bmaxwell
Date: 2011-08-26 02:38:34 -0400 (Fri, 26 Aug 2011)
New Revision: 112134

Modified:
   branches/JBPAPP_5_1_JBPAPP-6716/system-jmx/src/main/org/jboss/deployment/MainDeployer.java
Log:
[JBPAPP-6716] fix bug is new isDeployed

Modified: branches/JBPAPP_5_1_JBPAPP-6716/system-jmx/src/main/org/jboss/deployment/MainDeployer.java
===================================================================
--- branches/JBPAPP_5_1_JBPAPP-6716/system-jmx/src/main/org/jboss/deployment/MainDeployer.java	2011-08-26 04:33:19 UTC (rev 112133)
+++ branches/JBPAPP_5_1_JBPAPP-6716/system-jmx/src/main/org/jboss/deployment/MainDeployer.java	2011-08-26 06:38:34 UTC (rev 112134)
@@ -1589,10 +1589,9 @@
    }
    
    private boolean isDeployed(String url, DeploymentState state)
-   {
-     
+   {     
          String simple_name = getFilenameFromURL(url);
-
+         
          List<ManagedDeployment> managedDeployments = getAllDeployments();
 
          for (ManagedDeployment deployment : managedDeployments)
@@ -1605,7 +1604,9 @@
                if (state == null)
                   return true;
                else
-                  return deployment.getDeploymentState().toString().equals(state);
+               {
+                  return deployment.getDeploymentState().toString().compareTo(state.toString()) == 0;                                                      
+               }
             }
          }
          return false;           



More information about the jboss-cvs-commits mailing list