JDK-8181748 : Check main jar manifest if "main-class" is omitted
Type:Sub-task
Component:deploy
Sub-Component:packager
Priority:P3
Status:Resolved
Resolution:Delivered
Submitted:2017-06-07
Updated:2017-10-10
Resolved:2017-10-10
Description
If "main-class" is omitted, we can check main jar manifest ("Main-class: ...").
Comments
Estimate: Days
20-07-2017
When implementing this fix this code ./src/main/java/jdk/packager/builders/AbstractAppImageBuilder.java:
if (mainJarType == Module.ModuleType.Unknown || mainJarType == Module.ModuleType.ModularJar) {
if (mainModule != null) {
out.println("app.mainmodule=" + mainModule); // TODO get app class from main module mainifest.
}
}