src/jdk.jpackage/share/classes/jdk/jpackage/internal/AbstractAppImageBuilder.java
branchJDK-8200758-branch
changeset 58695 64adf683bc7b
parent 58647 2c43b89b1679
equal deleted inserted replaced
58671:3b578a5976df 58695:64adf683bc7b
   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()