Fix packaging for Layout.NONE

Fixes gh-139
pull/152/head
Dave Syer 11 years ago
parent 40bfd295eb
commit f39b044cf7

@ -145,7 +145,9 @@ public class Repackager {
}
}
});
writer.writeLoaderClasses();
if (!(this.layout instanceof Layouts.None)) {
writer.writeLoaderClasses();
}
}
finally {
try {

@ -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…
Cancel
Save