parent
40bfd295eb
commit
f39b044cf7
|
@ -145,8 +145,10 @@ public class Repackager {
|
|||
}
|
||||
}
|
||||
});
|
||||
if (!(this.layout instanceof Layouts.None)) {
|
||||
writer.writeLoaderClasses();
|
||||
}
|
||||
}
|
||||
finally {
|
||||
try {
|
||||
writer.close();
|
||||
|
|
|
@ -148,6 +148,7 @@ public class RepackagerTests {
|
|||
Manifest actualManifest = getManifest(file);
|
||||
assertThat(actualManifest.getMainAttributes().getValue("Main-Class"),
|
||||
equalTo("a.b.C"));
|
||||
assertThat(hasLauncherClasses(file), equalTo(false));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -160,6 +161,7 @@ public class RepackagerTests {
|
|||
Manifest actualManifest = getManifest(file);
|
||||
assertThat(actualManifest.getMainAttributes().getValue("Main-Class"),
|
||||
equalTo(null));
|
||||
assertThat(hasLauncherClasses(file), equalTo(false));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue