Write native-image argfile only if there are excludes
Refactors duplicate logic in BootZipCopyAction and Packager into separate classes. Closes gh-33363 Co-authored-by: Phillip Webb <pwebb@vmware.com>
This commit is contained in:
@@ -201,6 +201,13 @@ class BootJarTests extends AbstractBootArchiveTests<BootJar> {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void nativeImageArgFileIsNotWrittenWhenExcludesAreEmpty() throws IOException {
|
||||
try (JarFile jarFile = new JarFile(createLayeredJar(false))) {
|
||||
assertThat(jarFile.getEntry("META-INF/native-image/argfile")).isNull();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void javaVersionIsWrittenToManifest() throws IOException {
|
||||
try (JarFile jarFile = new JarFile(createPopulatedJar())) {
|
||||
|
||||
Reference in New Issue
Block a user