cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r514115 - /cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/servlet/CocoonReloadingListener.java
Date Sat, 03 Mar 2007 10:14:54 GMT
Author: reinhard
Date: Sat Mar  3 02:14:54 2007
New Revision: 514115

URL: http://svn.apache.org/viewvc?view=rev&rev=514115
Log:
improve logging and comments

Modified:
    cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/servlet/CocoonReloadingListener.java

Modified: cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/servlet/CocoonReloadingListener.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/servlet/CocoonReloadingListener.java?view=diff&rev=514115&r1=514114&r2=514115
==============================================================================
--- cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/servlet/CocoonReloadingListener.java
(original)
+++ cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/servlet/CocoonReloadingListener.java
Sat Mar  3 02:14:54 2007
@@ -37,12 +37,12 @@
         String changedFileParentPath = changedFile.getParent().replace('\\', '/');
         String changedFilePath = changedFile.getAbsolutePath().replace('\\', '/');      
 
 
-        if(changedFileParentPath.endsWith("META-INF/cocoon/spring") ||
-                changedFileParentPath.endsWith("config/avalon") ||
-                changedFilePath.endsWith(".xmap") ||
-                changedFilePath.endsWith(".xmap.xml") ||
-                changedFileParentPath.endsWith("config/spring")) {            
-            log.info("File change detected: " + changedFile);
+        if(changedFileParentPath.endsWith("META-INF/cocoon/spring") ||        // global Spring
beans configurations
+                changedFileParentPath.endsWith("config/avalon") ||            // global Avalon
components
+                changedFilePath.endsWith(".xmap") ||                          // any file
that ends with xmap (sitemaps)
+                changedFilePath.endsWith(".xmap.xml") ||                      // any sitemap
that ends with xmap.xml (sitemaps)
+                changedFileParentPath.endsWith("config/spring")) {            // local Spring
bean configurations
+            log.info("Configuration file change detected: " + changedFile);
             reload = true;
         }
     }



Mime
View raw message