8208653: Error string does not show correct rmpbuild version JDK-8200758-branch
authorherrick
Thu, 02 Aug 2018 17:44:48 -0400
branchJDK-8200758-branch
changeset 56850 678d72c01ee6
parent 56849 16c34c7b4147
child 56851 1390fbc2cf3d
8208653: Error string does not show correct rmpbuild version Reviewed-by: almatvee
src/jdk.packager/linux/classes/jdk/packager/internal/linux/LinuxRpmBundler.java
--- a/src/jdk.packager/linux/classes/jdk/packager/internal/linux/LinuxRpmBundler.java	Thu Aug 02 17:42:35 2018 -0400
+++ b/src/jdk.packager/linux/classes/jdk/packager/internal/linux/LinuxRpmBundler.java	Thu Aug 02 17:44:48 2018 -0400
@@ -215,8 +215,12 @@
             //validate presense of required tools
             if (!testTool(TOOL_RPMBUILD, TOOL_RPMBUILD_MIN_VERSION)){
                 throw new ConfigException(
-                        I18N.getString(MessageFormat.format("error.cannot-find-rpmbuild", TOOL_RPMBUILD_MIN_VERSION)),
-                        I18N.getString(MessageFormat.format("error.cannot-find-rpmbuild.advice", TOOL_RPMBUILD_MIN_VERSION)));
+                    MessageFormat.format(
+                        I18N.getString("error.cannot-find-rpmbuild"),
+                        TOOL_RPMBUILD_MIN_VERSION),
+                    MessageFormat.format(
+                        I18N.getString("error.cannot-find-rpmbuild.advice"),
+                        TOOL_RPMBUILD_MIN_VERSION));
             }
 
             // only one mime type per association, at least one file extension