Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.4
Description
In "struts.xml" when I include "struts/*.xml" which packaged in "WEB-INF/lib/sys.jar",but didn't load the include files. When I put include files in folder "WEB-INF/cleasses/struts/",it works.
<include file="struts/*.xml" />
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider#loadConfigurationFiles(String fileName, Element includeElement)
if ("include".equals(nodeName)) { String includeFileName = child.getAttribute("file"); if (includeFileName.indexOf('*') != -1) { // handleWildCardIncludes(includeFileName, docs, child); ClassPathFinder wildcardFinder = new ClassPathFinder(); wildcardFinder.setPattern(includeFileName); Vector<String> wildcardMatches = wildcardFinder.findMatches(); for (String match : wildcardMatches) { finalDocs.addAll(loadConfigurationFiles(match, child)); } } else { finalDocs.addAll(loadConfigurationFiles(includeFileName, child)); } }
Attachments
Issue Links
- is related to
-
WW-3787 allow include other config files from classpath
- Closed