--- old/src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/MacAppImageBuilder.java 2019-04-19 16:02:04.832788386 -0700 +++ new/src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/MacAppImageBuilder.java 2019-04-19 16:02:04.544788394 -0700 @@ -166,7 +166,7 @@ public MacAppImageBuilder(Map config, Path imageOutDir) throws IOException { super(config, imageOutDir.resolve(APP_NAME.fetchFrom(config) - + ".app/Contents/PlugIns/Java.runtime/Contents/Home")); + + ".app/Contents/runtime/Contents/Home")); Objects.requireNonNull(imageOutDir); @@ -177,7 +177,7 @@ this.javaModsDir = javaDir.resolve("mods"); this.resourcesDir = contentsDir.resolve("Resources"); this.macOSDir = contentsDir.resolve("MacOS"); - this.runtimeDir = contentsDir.resolve("PlugIns/Java.runtime"); + this.runtimeDir = contentsDir.resolve("runtime"); this.runtimeRoot = runtimeDir.resolve("Contents/Home"); this.mdir = runtimeRoot.resolve("lib"); Files.createDirectories(javaDir); @@ -317,7 +317,7 @@ executable.toFile().setExecutable(true, false); // generate main app launcher config file File cfg = new File(root.toFile(), getLauncherCfgName(params)); - writeCfgFile(params, cfg, "$APPDIR/PlugIns/Java.runtime"); + writeCfgFile(params, cfg, "$APPDIR/runtime"); // create additional app launcher(s) and config file(s) List> entryPoints = @@ -335,7 +335,7 @@ // add config file for add launcher cfg = new File(root.toFile(), getLauncherCfgName(tmp)); - writeCfgFile(tmp, cfg, "$APPDIR/PlugIns/Java.runtime"); + writeCfgFile(tmp, cfg, "$APPDIR/runtime"); } // Copy class path entries to Java folder @@ -502,7 +502,7 @@ COPYRIGHT.fetchFrom(params) != null ? COPYRIGHT.fetchFrom(params) : "Unknown"); data.put("DEPLOY_LAUNCHER_NAME", getLauncherName(params)); - data.put("DEPLOY_JAVA_RUNTIME_NAME", "$APPDIR/PlugIns/Java.runtime"); + data.put("DEPLOY_JAVA_RUNTIME_NAME", "$APPDIR/runtime"); data.put("DEPLOY_BUNDLE_SHORT_VERSION", VERSION.fetchFrom(params) != null ? VERSION.fetchFrom(params) : "1.0.0"); @@ -524,11 +524,8 @@ StandardBundlerParam.MODULE.fetchFrom(params)); } - data.put("DEPLOY_PREFERENCES_ID", - PREFERENCES_ID.fetchFrom(params).toLowerCase()); - StringBuilder sb = new StringBuilder(); - List jvmOptions = JVM_OPTIONS.fetchFrom(params); + List jvmOptions = JAVA_OPTIONS.fetchFrom(params); String newline = ""; //So we don't add extra line after last append for (String o : jvmOptions) { @@ -537,7 +534,7 @@ newline = "\n"; } - data.put("DEPLOY_JVM_OPTIONS", sb.toString()); + data.put("DEPLOY_JAVA_OPTIONS", sb.toString()); sb = new StringBuilder(); List args = ARGUMENTS.fetchFrom(params); @@ -877,7 +874,7 @@ throw ioe; } - // sign all plugins and frameworks + // sign all runtime and frameworks Consumer signIdentifiedByPList = path -> { //noinspection ThrowableResultOfMethodCallIgnored if (toThrow.get() != null) return; @@ -916,9 +913,9 @@ } }; - Path pluginsPath = appLocation.resolve("Contents/PlugIns"); - if (Files.isDirectory(pluginsPath)) { - Files.list(pluginsPath) + Path javaPath = appLocation.resolve("Contents/runtime"); + if (Files.isDirectory(javaPath)) { + Files.list(javaPath) .forEach(signIdentifiedByPList); ioe = toThrow.get();