spring-boot/spring-boot-tools
Andy Wilkinson 5e79657d4b Treat URLs for same file in nested archive and from jar root as equal
Consider the following two URLs:

jar:file:/test.jar!/BOOT-INF/classes!/foo.txt
jar:file:/test.jar!/BOOT-INF/classes/foo.txt

They both reference the same foo.txt file in the BOOT-INF/classes
directory of test.jar, however the first URL does so via the
nested BOOT-INF/classes archive. Previously, this difference in the
URLs would lead to PathMatchingResourcePatternResolver returning two
resources for foo.txt when asked to find all resources matching the
pattern classpath*:/**/*.txt.

This commit updates our Handler that is used for jar: URLs to consider
the two URLs above to be equivalent such that url1 is equal to url2
and the two urls will produce the same hash code.

Closes gh-7449
2016-11-23 14:04:45 +00:00
..
spring-boot-antlib Next Development Version 2016-11-08 16:55:37 +00:00
spring-boot-configuration-metadata Next Development Version 2016-11-08 16:55:37 +00:00
spring-boot-configuration-processor Polish formatting and address warnings 2016-11-15 11:48:35 +00:00
spring-boot-gradle-plugin Next Development Version 2016-11-08 16:55:37 +00:00
spring-boot-loader Treat URLs for same file in nested archive and from jar root as equal 2016-11-23 14:04:45 +00:00
spring-boot-loader-tools Next Development Version 2016-11-08 16:55:37 +00:00
spring-boot-maven-plugin Next Development Version 2016-11-08 16:55:37 +00:00
pom.xml Next Development Version 2016-11-08 16:55:37 +00:00