Skip to content

XML import should support patterns for relative paths as well [SPR-5015] #9690

Closed
@spring-projects-issues

Description

@spring-projects-issues

Swisslog Developers opened SPR-5015 and commented

When using <import resource="mySpringFolder/anotherSpring-cfg.xml"/> in a bean definition file, one should be able to use a pattern(most likely ant) to import multiple files with just one line.

Like this to import all config files in a folder:
<import resource="mySpringFolder/*-cfg.xml"/>

At the moment spring tells me a
Caused by: java.io.FileNotFoundException: D:\eclipse\tomcat\webapps\myApp\WEB-INF\classes\mySpringFolder*-cfg.xml

This would make configuration of imports easier and also maintaining those import files.


Affects: 2.5.4

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions