You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2010/01/21 18:21:35 UTC

svn commit: r901780 - /myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/refresh/FileChangedDaemon.java

Author: werpu
Date: Thu Jan 21 17:21:35 2010
New Revision: 901780

URL: http://svn.apache.org/viewvc?rev=901780&view=rev
Log:
https://issues.apache.org/jira/browse/EXTSCRIPT-48
small bugfix, we get better refreshing behavior if we check all files from time to time... but we still have a bug in the renderers where the tainted is not set to false from time to time, this has to be investigated later

Modified:
    myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/refresh/FileChangedDaemon.java

Modified: myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/refresh/FileChangedDaemon.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/refresh/FileChangedDaemon.java?rev=901780&r1=901779&r2=901780&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/refresh/FileChangedDaemon.java (original)
+++ myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/refresh/FileChangedDaemon.java Thu Jan 21 17:21:35 2010
@@ -108,10 +108,10 @@
      */
     private final void checkForChanges() {
         for (Map.Entry<String, ReloadingMetadata> it : this.classMap.entrySet()) {
-            if (!it.getValue().isTainted()) {
+            //if (!it.getValue().isTainted()) {
 
                 File proxyFile = new File(it.getValue().getSourcePath() + File.separator + it.getValue().getFileName());
-                if (!it.getValue().isTainted() && isModified(it, proxyFile)) {
+                if (/*!it.getValue().isTainted() &&*/ isModified(it, proxyFile)) {
 
 
                     systemRecompileMap.put(it.getValue().getScriptingEngine(), Boolean.TRUE);
@@ -121,7 +121,7 @@
                     it.getValue().setTimestamp(proxyFile.lastModified());
                     dependencyTainted(it.getValue().getAClass().getName());
                 }
-            }
+            //}
         }
     }