From 247b694fec26a29bc7a82be123625f8448f43671 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 13 Jan 2010 18:24:16 +0000 Subject: [PATCH] fixed resolveRootDirResource regression (SPR-6592) git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2810 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../core/io/support/PathMatchingResourcePatternResolver.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.springframework.core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java b/org.springframework.core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java index b2886bdad6f..0d04f3b01f7 100644 --- a/org.springframework.core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java +++ b/org.springframework.core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -340,6 +340,7 @@ public class PathMatchingResourcePatternResolver implements ResourcePatternResol Resource[] rootDirResources = getResources(rootDirPath); Set result = new LinkedHashSet(16); for (Resource rootDirResource : rootDirResources) { + rootDirResource = resolveRootDirResource(rootDirResource); if (isJarResource(rootDirResource)) { result.addAll(doFindPathMatchingJarResources(rootDirResource, subPattern)); }