struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From musa...@apache.org
Subject svn commit: r794418 - /struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingXMLWebApplicationContext.java
Date Wed, 15 Jul 2009 21:07:46 GMT
Author: musachy
Date: Wed Jul 15 21:07:45 2009
New Revision: 794418

URL: http://svn.apache.org/viewvc?rev=794418&view=rev
Log:
fix bug that added all the watched dirs as stores to the reloading classloader

Modified:
    struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingXMLWebApplicationContext.java

Modified: struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingXMLWebApplicationContext.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingXMLWebApplicationContext.java?rev=794418&r1=794417&r2=794418&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingXMLWebApplicationContext.java
(original)
+++ struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingXMLWebApplicationContext.java
Wed Jul 15 21:07:45 2009
@@ -110,8 +110,9 @@
                 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());



Mime
View raw message