| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | */ |
| | | package org.opends.quicksetup.installer.offline; |
| | | |
| | |
| | | import org.opends.quicksetup.ProgressStep; |
| | | import org.opends.quicksetup.Installation; |
| | | import org.opends.quicksetup.SecurityOptions; |
| | | import org.opends.quicksetup.installer.Installer; |
| | | import org.opends.quicksetup.installer.InstallProgressStep; |
| | | import org.opends.quicksetup.installer.Installer; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.quicksetup.util.ServerController; |
| | | import org.opends.quicksetup.util.FileManager; |
| | |
| | | |
| | | setCurrentProgressStep(InstallProgressStep.CONFIGURING_SERVER); |
| | | |
| | | notifyListenersOfLog(); |
| | | notifyListenersOfLog(false); |
| | | notifyListeners(getLineBreak()); |
| | | |
| | | configureServer(); |
| | |
| | | notifyListeners(html); |
| | | logger.error(LocalizableMessage.raw("Error installing.", ex)); |
| | | notifyListeners(getLineBreak()); |
| | | notifyListenersOfLogAfterError(); |
| | | notifyListenersOfLog(true); |
| | | } |
| | | runError = ex; |
| | | } |
| | |
| | | notifyListeners(msg); |
| | | logger.error(LocalizableMessage.raw("Error installing.", t)); |
| | | notifyListeners(getLineBreak()); |
| | | notifyListenersOfLogAfterError(); |
| | | notifyListenersOfLog(true); |
| | | runError = ex; |
| | | } |
| | | finally |
| | |
| | | return Utils.getInstancePathFromInstallPath(installPath); |
| | | } |
| | | |
| | | private void notifyListenersOfLog(final boolean isError) |
| | | { |
| | | if (tempLogFile.isEnabled()) |
| | | { |
| | | final String tempLogFilePath = tempLogFile.getPath(); |
| | | notifyListeners(getFormattedProgress(isError ? INFO_GENERAL_PROVIDE_LOG_IN_ERROR.get(tempLogFilePath) |
| | | : INFO_GENERAL_SEE_FOR_DETAILS.get(tempLogFilePath))); |
| | | notifyListeners(getLineBreak()); |
| | | } |
| | | } |
| | | } |