src/jdk.jpackage/share/classes/jdk/jpackage/internal/AbstractAppImageBuilder.java
equal
deleted
inserted
replaced
114 if (mainModule != null && |
114 if (mainModule != null && |
115 (mainJarType == ModFile.ModType.Unknown || |
115 (mainJarType == ModFile.ModType.Unknown || |
116 mainJarType == ModFile.ModType.ModularJar)) { |
116 mainJarType == ModFile.ModType.ModularJar)) { |
117 out.println("app.mainmodule=" + mainModule); |
117 out.println("app.mainmodule=" + mainModule); |
118 } else { |
118 } else { |
119 String mainClass = JLinkBundlerHelper.getMainClass(params); |
119 String mainClass = |
|
120 StandardBundlerParam.MAIN_CLASS.fetchFrom(params); |
120 // If the app is contained in an unnamed jar then launch it the |
121 // If the app is contained in an unnamed jar then launch it the |
121 // legacy way and the main class string must be |
122 // legacy way and the main class string must be |
122 // of the format com/foo/Main |
123 // of the format com/foo/Main |
123 if (mainJar != null) { |
124 if (mainJar != null) { |
124 out.println("app.mainjar=" + getCfgAppDir() |
125 out.println("app.mainjar=" + getCfgAppDir() |