mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Change PropertiesLauncher equals method to use URI
See gh-20872
This commit is contained in:
parent
41f46149aa
commit
9f4c39c985
@ -516,7 +516,7 @@ public class PropertiesLauncher extends Launcher {
|
||||
private List<Archive> getNestedArchives(String path) throws Exception {
|
||||
Archive parent = this.parent;
|
||||
String root = path;
|
||||
if (!root.equals("/") && root.startsWith("/") || parent.getUrl().equals(this.home.toURI().toURL())) {
|
||||
if (!root.equals("/") && root.startsWith("/") || parent.getUrl().toURI().equals(this.home.toURI())) {
|
||||
// If home dir is same as parent archive, no need to add it twice.
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user