Hi there, 
        
The issue MR-ISSUE-560 was just created by Edwin (Edwin).
        
        Key: MR-ISSUE-560
        Summary: When a view from an additionalSource has changed, the wrong 
key is used to remove the view from the compiled cache.
        Type: Bug
        Importance: Medium
        
        Description:
        When a view from an additionalSource has changed, the wrong key is used 
to remove the view from the compiled cache. The cached entry remains till 
application restart. This is especialy anoying while developing.
The key used is derived from e.FullPath.Substring(viewRoot.Length) where 
viewRoot is set to the viewRootDir of the ViewSourceLoader instead of the 
additionalSourceDir (PathSources in ViewSourceLoader).
FIX:
In BooViewEngine.OnViewChanged:
viewRoot = loaderThatDetectedTheChange.ViewRootDir;
Should be something like:
                    ArrayList viewDirs = new 
ArrayList(loaderThatDetectedTheChange.PathSources);
                    viewDirs.Add(loaderThatDetectedTheChange.ViewRootDir);
                    foreach (string viewDir in viewDirs)
                        if (viewDir.Length > viewRoot.Length && 
e.FullPath.StartsWith(viewDir))
                            viewRoot = viewDir;
        
For more, see 
http://support.castleproject.org/projects/MR/issues/view/MR-ISSUE-560
 
        
--
donjon
by Castle Stronghold
http://www.castle-donjon.com


-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en.

Reply via email to