geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1147721 - /geronimo/server/trunk/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/ModuleHandler.java
Date Mon, 18 Jul 2011 01:49:18 GMT
Author: rwonly
Date: Mon Jul 18 01:49:18 2011
New Revision: 1147721

URL: http://svn.apache.org/viewvc?rev=1147721&view=rev
Log:
GERONIMO-6028 Nothing prompted when hotdeploy a re-named eba application

Modified:
    geronimo/server/trunk/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/ModuleHandler.java

Modified: geronimo/server/trunk/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/ModuleHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/ModuleHandler.java?rev=1147721&r1=1147720&r2=1147721&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/ModuleHandler.java
(original)
+++ geronimo/server/trunk/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/ModuleHandler.java
Mon Jul 18 01:49:18 2011
@@ -109,7 +109,7 @@ public class ModuleHandler implements Di
                 if (deletedFile.getModified() < getModuleLastModified(moduleId)) {
                     fileRemoved(new File(deletedFile.getPath()), moduleId);
                 } else {
-                    log.debug("File {} was removed but {} module was not undeployed since
the deployed module is newer", deletedFile.getPath(), moduleId);
+                    log.warn("File: {} was removed, but module: {} was not undeployed, since
the deployed one is newer", deletedFile.getPath(), moduleId);
                 }
             }
         }
@@ -125,7 +125,7 @@ public class ModuleHandler implements Di
                         addedFile.setConfigId(newModuleId.length() == 0 ? moduleId : newModuleId);
                     }
                 } else {
-                    log.debug("File {} was added but {} module was not redeployed since the
deployed module is newer", addedFile.getPath(), moduleId);                    
+                    log.warn("File: {} was added, but module: {} was not redeployed, since
the deployed one is newer", addedFile.getPath(), moduleId);                    
                 }
             } else {
                 String newModuleId = fileAdded(moduleFile);
@@ -146,7 +146,7 @@ public class ModuleHandler implements Di
                         modifiedFile.setConfigId(newModuleId.length() == 0 ? moduleId : newModuleId);
                     }
                 } else {
-                    log.debug("File {} was modified but {} module was not redeployed since
the deployed module is newer", modifiedFile.getPath(), moduleId);                        
           
+                    log.warn("File: {} was modified, but module: {} was not redeployed, since
the deployed one is newer", modifiedFile.getPath(), moduleId);                           
        
                 }
             } else {
                 String newModuleId = fileAdded(moduleFile);
@@ -173,7 +173,7 @@ public class ModuleHandler implements Di
             try {
                 moduleId = DeployUtils.extractModuleIdFromPlan(module);
             } catch (Exception e2) {
-                log.debug("Unable to calculate module ID for file " + module.getAbsolutePath()
+ " [" + e2.getMessage() + "]");
+                log.error("Unable to calculate module ID for file " + module.getAbsolutePath()
+ " [" + e2.getMessage() + "]");
             }
         }
         if (moduleId == null) {
@@ -218,7 +218,7 @@ public class ModuleHandler implements Di
             DeployUtils.identifyTargetModuleIDs(ids, configId, true).toArray(new TargetModuleID[0]);
             return true;
         } catch (DeploymentException e) {
-            log.debug("Found new file in deploy directory on startup with ID " + configId);
+            log.error("Found new file in deploy directory on startup with ID " + configId);
         } catch (Exception e) {
             log.error("Unable to check status", e);
         } finally {



Mime
View raw message