| | |
| | | import org.opends.quicksetup.installer.InstallProgressStep; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.quicksetup.util.ZipExtractor; |
| | | import org.opends.quicksetup.util.ServerController; |
| | | |
| | | /** |
| | | * This is an implementation of the Installer class that is used to install |
| | |
| | | { |
| | | notifyListeners(getTaskSeparator()); |
| | | status = InstallProgressStep.STARTING_SERVER; |
| | | startServer(); |
| | | new ServerController(this).startServer(); |
| | | } |
| | | |
| | | if (Utils.isWindows()) |
| | |
| | | ZipExtractor extractor = |
| | | new ZipExtractor(is, minRatio, maxRatio, |
| | | getUserData().getServerLocation(), |
| | | getNumberZipEntries(), |
| | | Utils.getNumberZipEntries(), |
| | | getZipFileName(), |
| | | this); |
| | | extractor.extract(); |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the number of entries contained in the zip file. This is used to |
| | | * update properly the progress bar ratio. |
| | | * @return the number of entries contained in the zip file. |
| | | */ |
| | | private int getNumberZipEntries() |
| | | { |
| | | // TODO we should get this dynamically during build |
| | | return 83; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | protected String getInstallationPath() |