--- a/src/jdk.jpackager/macosx/classes/jdk/jpackager/internal/mac/MacAppBundler.java Mon Nov 05 19:05:15 2018 -0500
+++ b/src/jdk.jpackager/macosx/classes/jdk/jpackager/internal/mac/MacAppBundler.java Thu Nov 08 10:56:28 2018 -0500
@@ -201,7 +201,7 @@
VERBOSE.fetchFrom(params));
if (!certificate.isValid()) {
- Log.info(MessageFormat.format(I18N.getString(
+ Log.error(MessageFormat.format(I18N.getString(
"error.certificate.expired"), result));
}
}
@@ -228,7 +228,7 @@
params -> {
File f = ICON.fetchFrom(params);
if (f != null && !f.getName().toLowerCase().endsWith(".icns")) {
- Log.info(MessageFormat.format(
+ Log.error(MessageFormat.format(
I18N.getString("message.icon-not-icns"), f));
return null;
}
@@ -375,14 +375,10 @@
return predefined;
}
return rootDirectory;
- } catch (IOException ex) {
- Log.info(ex.toString());
+ } catch (Exception ex) {
+ Log.error("Exception: "+ex);
Log.verbose(ex);
return null;
- } catch (Exception ex) {
- Log.info("Exception: "+ex);
- Log.debug(ex);
- return null;
}
}
@@ -399,14 +395,10 @@
StandardBundlerParam.copyPredefinedRuntimeImage(p, appBuilder);
}
return rootDirectory;
- } catch (IOException ex) {
- Log.info(ex.toString());
+ } catch (Exception ex) {
+ Log.error("Exception: "+ex);
Log.verbose(ex);
return null;
- } catch (Exception ex) {
- Log.info("Exception: "+ex);
- Log.debug(ex);
- return null;
}
}
@@ -430,7 +422,7 @@
rootDirectory.mkdirs();
if (!dependentTask) {
- Log.info(MessageFormat.format(I18N.getString(
+ Log.verbose(MessageFormat.format(I18N.getString(
"message.creating-app-bundle"),
rootDirectory.getAbsolutePath()));
}