DATAJPA-1022 - Move back to PathMatchingResourcePatternResolver signature of Spring 4.3.
This reverts commit 911b9f70cd as the change broke compatibility with Spring 4.2, the version of Spring the Hopper maintenance branch runs on.
Also disabling Spring 5 related integration tests for Travis as we now run an incompatible implementation of PathMatchingResourcePatternResolver.
Related ticket: DATAJPA-1021.
This commit is contained in:
@@ -9,8 +9,6 @@ env:
|
||||
- PROFILE=spring42-next
|
||||
- PROFILE=spring43
|
||||
- PROFILE=spring43-next
|
||||
- PROFILE=spring5,hibernate-43
|
||||
- PROFILE=spring5-next,hibernate-43
|
||||
- PROFILE=hibernate-41
|
||||
- PROFILE=hibernate-42
|
||||
- PROFILE=hibernate-42-next
|
||||
|
||||
@@ -18,7 +18,6 @@ package org.springframework.data.jpa.support;
|
||||
import static org.mockito.Mockito.*;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
@@ -141,17 +140,17 @@ public class ClasspathScanningPersistenceUnitPostProcessorUnitTests {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.core.io.support.PathMatchingResourcePatternResolver#doFindPathMatchingJarResources(org.springframework.core.io.Resource, java.net.URL, java.lang.String)
|
||||
* @see org.springframework.core.io.support.PathMatchingResourcePatternResolver#doFindPathMatchingJarResources(org.springframework.core.io.Resource, java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
protected Set<Resource> doFindPathMatchingJarResources(Resource rootDirResource, URL rootDirURL,
|
||||
String subPattern) throws IOException {
|
||||
protected Set<Resource> doFindPathMatchingJarResources(Resource rootDirResource, String subPattern)
|
||||
throws IOException {
|
||||
|
||||
if (fileInJarUrl.equals(rootDirURL.toString())) {
|
||||
if (fileInJarUrl.equals(rootDirResource.getURI().toString())) {
|
||||
return Collections.singleton(rootDirResource);
|
||||
}
|
||||
|
||||
return super.doFindPathMatchingJarResources(rootDirResource, rootDirURL, subPattern);
|
||||
return super.doFindPathMatchingJarResources(rootDirResource, subPattern);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user