Refine ApplicationHome detection logic

Update the detection logic used in ApplicationHome to:
- Deal with `!/` elements in URLs so that `BOOT-INF/classes` packaging
  works as expected.
- Use the `start-class` when no explicit source class is provided to
  prevent accidentally picking a home next to a `spring-boot.jar` that
  happens to be on the classpath.
- Ignore search logic when running from a unit test.

Fixes gh-6129
This commit is contained in:
Phillip Webb
2016-06-09 20:45:37 -07:00
parent 17dfec7c4e
commit c66da65e23
2 changed files with 68 additions and 6 deletions
+1
View File
@@ -35,3 +35,4 @@ overridedb.*
.DS_Store
.factorypath
dump.rdb
transaction-logs