mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
fix bug that added all the watched dirs as stores to the reloading classloader
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@794418 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+2
-1
@@ -110,8 +110,9 @@ public class ClassReloadingXMLWebApplicationContext extends XmlWebApplicationCon
|
||||
List<File> dirs = new ArrayList<File>();
|
||||
getAllPaths(file, dirs);
|
||||
|
||||
classLoader.addResourceStore(new FileResourceStore(file));
|
||||
|
||||
for (File dir : dirs) {
|
||||
classLoader.addResourceStore(new FileResourceStore(dir));
|
||||
//register with the fam
|
||||
fam.addListener(dir, this);
|
||||
LOG.debug("Watching [#0] for changes", dir.getAbsolutePath());
|
||||
|
||||
Reference in New Issue
Block a user