You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
8 years ago
..
spring-boot-antlib Next Development Version 8 years ago
spring-boot-configuration-metadata Next Development Version 8 years ago
spring-boot-configuration-processor Polish formatting and address warnings 8 years ago
spring-boot-gradle-plugin Next Development Version 8 years ago
spring-boot-loader Treat URLs for same file in nested archive and from jar root as equal 8 years ago
spring-boot-loader-tools Next Development Version 8 years ago
spring-boot-maven-plugin Next Development Version 8 years ago
pom.xml Next Development Version 8 years ago