Commits

Anonymous committed 02541ae

WW-420
- improved logging to log the location of xml file where the same package name is being found as well as the location of the current xml file where the conflict is found
- make destroy() method clear the packageConfig Map. When a DefaultConfiguration is destroyed we don't want to keep the old packageConfigs anyway.

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1149e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork2/config/impl/DefaultConfiguration.java

                 } 
             } else {
                 throw new ConfigurationException("The package name '" + name 
-                        + "' is already been used by another package: " + check.getLocation(),
+                        + "' at locattion "+packageContext.getLocation()
+                        + " is already been used by another package at location " + check.getLocation(),
                         packageContext);
             }
         }
      * Allows the configuration to clean up any resources used
      */
     public void destroy() {
+        packageContexts.clear();
     }
 
     public void rebuildRuntimeConfiguration() {