Results 1 to 3 of 3

Thread: Ant style path wildcard matching API call

  1. #1

    Default Ant style path wildcard matching API call

    Hi

    I am looking to call a Spring API method, that given input "**/*.xml" will return me a list of Resources that I can load from the file system..

    Does anyone (that knows this part of the core API) know where this interface is?

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Take a look at PathMatchingResourcePatternResolver.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  3. #3

    Default PathMatchingResourcePatternResolver

    Excellent - that is what I am after - but the interface call I want to make is protected:

    protected List retrieveMatchingFiles(File rootDir, String pattern)

    The only publicly available interface methods search the current dir - which is not what I am after...

    Is there any reason why this is protected?

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Replies: 2
    Last Post: Jul 21st, 2005, 04:07 AM
  3. Resource: Add valid path not found
    By moacsjr in forum Data
    Replies: 3
    Last Post: May 24th, 2005, 05:53 PM
  4. Replies: 1
    Last Post: Feb 10th, 2005, 09:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •