Fix reachability argfile format

Update the argfile to a format that actually works when
passed to the `native-image` command.

See gh-32738
This commit is contained in:
Phillip Webb
2022-10-17 18:58:42 -07:00
parent a8e701cee2
commit c16c6bc3b5
4 changed files with 10 additions and 12 deletions

View File

@@ -189,8 +189,8 @@ class BootJarTests extends AbstractBootArchiveTests<BootJar> {
void nativeImageArgFileWithExcludesIsWritten() throws IOException {
try (JarFile jarFile = new JarFile(createLayeredJar(true))) {
assertThat(entryLines(jarFile, "META-INF/native-image/argfile")).containsExactly("--exclude-config",
"\"\\\\Qfirst-library.jar\\\\E\"", "\"^/META-INF/native-image/.*\"", "--exclude-config",
"\"\\\\Qsecond-library.jar\\\\E\"", "\"^/META-INF/native-image/.*\"");
"\\Qfirst-library.jar\\E", "^/META-INF/native-image/.*", "--exclude-config",
"\\Qsecond-library.jar\\E", "^/META-INF/native-image/.*");
}
}