8208653: Error string does not show correct rmpbuild version
Reviewed-by: almatvee
--- 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