| | |
| | | import java.io.PrintStream; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.logging.Level; |
| | | import java.util.logging.Logger; |
| | | |
| | | import org.opends.quicksetup.ApplicationException; |
| | | import org.opends.quicksetup.ProgressStep; |
| | |
| | | private HashMap<InstallProgressStep, String> hmSummary = |
| | | new HashMap<InstallProgressStep, String>(); |
| | | |
| | | private static final Logger LOG = |
| | | Logger.getLogger(WebStartInstaller.class.getName()); |
| | | |
| | | /** |
| | | * WebStartInstaller constructor. |
| | | */ |
| | |
| | | |
| | | InputStream in = |
| | | getZipInputStream(getRatio(InstallProgressStep.EXTRACTING)); |
| | | notifyListeners(getTaskSeparator()); |
| | | |
| | | setStatus(InstallProgressStep.EXTRACTING); |
| | | notifyListeners(getTaskSeparator()); |
| | | |
| | | createParentDirectoryIfRequired(); |
| | | extractZipFiles(in, getRatio(InstallProgressStep.EXTRACTING), |
| | | getRatio(InstallProgressStep.CONFIGURING_SERVER)); |
| | | |
| | | try |
| | | { |
| | | in.close(); |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | LOG.log(Level.INFO, "Error closing zip input stream: "+t, t); |
| | | } |
| | | setStatus(InstallProgressStep.CONFIGURING_SERVER); |
| | | notifyListeners(getTaskSeparator()); |
| | | |
| | | // Write java home before calling Installation class. The installation |
| | | // class does a call to start-ds to get information about the build. |
| | | writeJavaHome(); |
| | | setInstallation(new Installation(getUserData().getServerLocation())); |
| | | |
| | | setStatus(InstallProgressStep.CONFIGURING_SERVER); |
| | | configureServer(); |
| | | |
| | | createData(); |
| | | |
| | | updateADS(); |
| | | |
| | | writeJavaHome(); |
| | | |
| | | if (Utils.isWindows()) |
| | | { |
| | | notifyListeners(getTaskSeparator()); |
| | |
| | | getMsg("error-zipinputstreamnull", new String[] {zipName}), null); |
| | | } |
| | | |
| | | |
| | | notifyListeners(getFormattedDone()); |
| | | return in; |
| | | } |