@Override public String publish(final IPentahoSession localSession) { try { PentahoSystem.refreshSettings(); } catch (Throwable t) { error( Messages.getInstance().getErrorString("SettingsPublisher.ERROR_0001_PUBLISH_FAILED"), t); //$NON-NLS-1$ return Messages.getInstance().getString("SettingsPublisher.USER_ERROR_PUBLISH_FAILED") + t.getLocalizedMessage(); // $NON-NLS-1$ } return Messages.getInstance() .getString("SettingsPublisher.USER_SYSTEM_SETTINGS_UPDATED"); // $NON-NLS-1$ }
public static void shutdownPentahoSystem() { PentahoSystem.refreshSettings(); PentahoSystem.clearGlobals(); PentahoSystem.clearObjectFactory(); PentahoSystem.shutdown(); }