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:
Musachy Barroso
2009-07-15 21:07:45 +00:00
parent 0fd40525cd
commit fe7a12574b
@@ -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());