Skip to content

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

Closed

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:

Activity

  1. spring-projects-issues commented on May 13, 2009

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

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

    Juergen

  2. added
    type: enhancement
    in: core
    on Jan 11, 2019
  3. added this to the 3.0 M4 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions