Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BE232200BF2 for ; Mon, 2 Jan 2017 08:51:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BCB8E160B21; Mon, 2 Jan 2017 07:51:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 12DB8160B30 for ; Mon, 2 Jan 2017 08:50:59 +0100 (CET) Received: (qmail 3047 invoked by uid 500); 2 Jan 2017 07:50:59 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 2525 invoked by uid 99); 2 Jan 2017 07:50:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jan 2017 07:50:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B62432C2A6C for ; Mon, 2 Jan 2017 07:50:58 +0000 (UTC) Date: Mon, 2 Jan 2017 07:50:58 +0000 (UTC) From: "Hudson (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-3961) struts.xml include not loading in dependant jar files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 02 Jan 2017 07:51:00 -0000 [ https://issues.apache.org/jira/browse/WW-3961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15792426#comment-15792426 ] Hudson commented on WW-3961: ---------------------------- SUCCESS: Integrated in Jenkins build Struts-JDK7-master #576 (See [https://builds.apache.org/job/Struts-JDK7-master/576/]) WW-3787 WW-3961 Allows include config files from JARs (lukaszlenart: rev 98979423a164e264d1291ac34dc9a16759173aea) * (edit) core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-wildcard-include.xml * (edit) core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java * (edit) core/src/main/java/com/opensymphony/xwork2/util/ClassPathFinder.java > struts.xml include not loading in dependant jar files > ----------------------------------------------------- > > Key: WW-3961 > URL: https://issues.apache.org/jira/browse/WW-3961 > Project: Struts 2 > Issue Type: Improvement > Components: XML Configuration > Affects Versions: 2.3.4 > Reporter: yuanhuiwu > Assignee: Lukasz Lenart > Labels: include, struts.xml > Fix For: 2.5.next > > > 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. > {code:xml} > > {code} > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider#loadConfigurationFiles(String fileName, Element includeElement) > {code:java} > 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 wildcardMatches = wildcardFinder.findMatches(); > for (String match : wildcardMatches) { > finalDocs.addAll(loadConfigurationFiles(match, child)); > } > } else { > finalDocs.addAll(loadConfigurationFiles(includeFileName, child)); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)