|
|
|
@ -98,10 +98,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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -162,4 +164,8 @@ class ApplicationBuilder {
|
|
|
|
|
assertThat(execute.getExitCode()).isEqualTo(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private boolean isWindows() {
|
|
|
|
|
return File.separatorChar == '\\';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|