8208687: [jpackager] missing resource string(s) JDK-8200758-branch
authorherrick
Thu, 02 Aug 2018 17:47:41 -0400
branchJDK-8200758-branch
changeset 56851 1390fbc2cf3d
parent 56850 678d72c01ee6
child 56852 3f9d897fb81d
8208687: [jpackager] missing resource string(s) Reviewed-by: almatvee
src/jdk.packager/windows/classes/jdk/packager/internal/resources/windows/WinMsiBundler.properties
src/jdk.packager/windows/classes/jdk/packager/internal/windows/WinMsiBundler.java
--- a/src/jdk.packager/windows/classes/jdk/packager/internal/resources/windows/WinMsiBundler.properties	Thu Aug 02 17:44:48 2018 -0400
+++ b/src/jdk.packager/windows/classes/jdk/packager/internal/resources/windows/WinMsiBundler.properties	Thu Aug 02 17:47:41 2018 -0400
@@ -61,6 +61,9 @@
 error.cannot-write-to-output-dir=Output directory {0} is not writable.
 error.too-many-content-types-for-file-association=More than one MIME types was specified for File Association number {0}.
 error.too-many-content-types-for-file-association.advice=For Linux Bundling specify one and only one MIME type for each file association.
+error.license-missing=can not find license file {0}.
+error.license-missing.advice=include license file {0} in the --files argument.
+
 
 message.tool-version=Detected [{0}] version [{1}]
 message.running-wsh-script=Running WSH script on application image [{0}]
--- a/src/jdk.packager/windows/classes/jdk/packager/internal/windows/WinMsiBundler.java	Thu Aug 02 17:44:48 2018 -0400
+++ b/src/jdk.packager/windows/classes/jdk/packager/internal/windows/WinMsiBundler.java	Thu Aug 02 17:47:41 2018 -0400
@@ -388,9 +388,10 @@
                     }
                     if (!found) {
                         throw new ConfigException(
-                                I18N.getString("error.license-missing"),
-                                MessageFormat.format(I18N.getString("error.license-missing.advice"),
-                                        license));
+                            MessageFormat.format(I18N.getString(
+                               "error.license-missing"), license),
+                            MessageFormat.format(I18N.getString(
+                               "error.license-missing.advice"), license));
                     }
                 }
             }