|
|
|
@ -90,10 +90,12 @@ class ApplicationBuilder {
|
|
|
|
|
resourcesJarStream.putNextEntry(new ZipEntry("META-INF/resources/nested-meta-inf-resource.txt"));
|
|
|
|
|
resourcesJarStream.write("nested".getBytes());
|
|
|
|
|
resourcesJarStream.closeEntry();
|
|
|
|
|
resourcesJarStream.putNextEntry(
|
|
|
|
|
new ZipEntry("META-INF/resources/nested-reserved-!#$%&()*+,:=?@[]-meta-inf-resource.txt"));
|
|
|
|
|
resourcesJarStream.write("encoded-name".getBytes());
|
|
|
|
|
resourcesJarStream.closeEntry();
|
|
|
|
|
if (!isWindows()) {
|
|
|
|
|
resourcesJarStream.putNextEntry(
|
|
|
|
|
new ZipEntry("META-INF/resources/nested-reserved-!#$%&()*+,:=?@[]-meta-inf-resource.txt"));
|
|
|
|
|
resourcesJarStream.write("encoded-name".getBytes());
|
|
|
|
|
resourcesJarStream.closeEntry();
|
|
|
|
|
}
|
|
|
|
|
return resourcesJar;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -154,4 +156,8 @@ class ApplicationBuilder {
|
|
|
|
|
assertThat(execute.getExitCode()).isEqualTo(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private boolean isWindows() {
|
|
|
|
|
return File.separatorChar == '\\';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|