cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r525617 - /cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/tools/rcl/wrapper/servlet/CocoonReloadingListener.java
Date Wed, 04 Apr 2007 21:43:01 GMT
Author: reinhard
Date: Wed Apr  4 14:43:00 2007
New Revision: 525617

URL: http://svn.apache.org/viewvc?view=rev&rev=525617
Log:
- don't reload Spring because of Sitemap changes
- react on .class file changes instead of .java

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

Modified: cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/tools/rcl/wrapper/servlet/CocoonReloadingListener.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/tools/rcl/wrapper/servlet/CocoonReloadingListener.java?view=diff&rev=525617&r1=525616&r2=525617
==============================================================================
--- cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/tools/rcl/wrapper/servlet/CocoonReloadingListener.java
(original)
+++ cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-webapp-wrapper/src/main/java/org/apache/cocoon/tools/rcl/wrapper/servlet/CocoonReloadingListener.java
Wed Apr  4 14:43:00 2007
@@ -53,14 +53,17 @@
 
         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)
-                changedFilePath.endsWith(".java") ||                                // any
Java class change
-                changedFileParentPath.endsWith("config/spring")) {                  // local
Spring bean configurations
-            log.debug("Configuration file change detected [" + operation + "]: " + changedFile);
+//                changedFilePath.endsWith(".xmap") ||                                //
any file that ends with xmap (sitemaps)
+//                changedFilePath.endsWith(".xmap.xml") ||                            //
any sitemap that ends with xmap.xml (sitemaps)
+                changedFilePath.endsWith(".class") ||                         // Java class
file change
+                changedFileParentPath.endsWith("config/spring")                     // local
Spring bean configurations
+           ) {                
+            log.debug("Configuration or .class file change detected [" + operation + "]:
" + changedFile);
+            System.out.println("Configuration or .class file change detected [" + operation
+ "]: " + changedFile);
             reload = true;
         } else {
-            log.debug("File change detected [" + operation + "]: " + changedFile);  // any
other file change
+            log.debug("Other file change detected, no reload [" + operation + "]: " + changedFile);
 // any other file change
+            System.out.println("Other file change detected, no reload [" + operation + "]:
" + changedFile);
         }
     }
 



Mime
View raw message