This commit is contained in:
Phillip Webb
2020-01-22 20:29:19 -08:00
parent 77bbe089b2
commit 57db621b70
2 changed files with 9 additions and 8 deletions

View File

@@ -177,8 +177,8 @@ public class BootJar extends Jar implements BootArchive {
this.bootInf.eachFile((details) -> {
Layer layer = layerForFileDetails(details);
if (layer != null) {
details.setPath(
BOOT_INF_LAYERS + "/" + layer + "/" + details.getPath().substring("BOOT-INF/".length()));
String relativePath = details.getPath().substring("BOOT-INF/".length());
details.setPath(BOOT_INF_LAYERS + "/" + layer + "/" + relativePath);
}
}).setIncludeEmptyDirs(false);
this.bootInf.into("", (spec) -> spec.from(createLayersIndex()));