Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Jul 16, 2008 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jul 16, 2008

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:

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

This has finally been addressed for 3.0 RC1 now! Thanks for raising it.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants