mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
11.34.2006 c40f084a6d3e897785f2fbff3ddb97545644cddc
refs
author jvergara <jvergara@localhost>
Monday, December 11, 2006 16:34 +0100
committer jvergara <jvergara@localhost>
Monday, December 11, 2006 16:34 +0100
commitc40f084a6d3e897785f2fbff3ddb97545644cddc
tree 74a65db6b7310526b92c80492c9a985ff6c8701a tree | zip | gz
parent d14f7a3574a4bd3d05bac70d809e19c13cb239ad view | diff
The following modifications include the comments from Neil and Brian (thanks to both for your help):

1. Fix a bug with the setup script. Know this script is executable after the Web Start based installation.

2. Provide a different welcome message in the setup depending on whether we are launching the setup from the command line or Web Start. If we are launching the command line setup we make reference in the message to the Web Start installation and provide a link to the downloads page.

3. When the setup is successful, include in the message the path of the installation as was requested by William Hathaway.

4. Try to find a valid default port (of type []389) and not limit the search to 389. This implies not having any explanatory message to be displayed if we cannot connect to 389.

5. Update the code to better handle bug scenarii. Previously the code assumed that only RuntimeException could occur in case of a bug. This is not true in the general case, so know the code handles Throwable objects to detect bugs.

6. Provide the first implementation for the Uninstaller. Some code has been rearranged to maximize code re-use. The first implementation of the uninstaller basically does the following:

- Display a confirmation message informing of what will happen with the installation files and the consequences of uninstalling the server.

Ask the user which parts of the server must be uninstalled.

Check if we have configuration references outside the installation path (for the moment this check is limited to database files and log files). If these references exist show them to the user and ask the user whether these 'external' files must be deteled or not.

If the server is running we ask for confirmation to stop the server and if we are in windows we ask the user to provide a DN and a password to authenticate.

If the user continues and the server is running the code calls stop-ds script, if the script succeeds the code tries to delete the files in the installation that the user wanted to uninstall and in the case there are external files to the installation path and the user wants to delete them delete also these external files.

If everything works properly the uninstaller will delete all the files except the <install-root>/lib/quicksetup.jar and <install-root>/lib/OpenDS.jar file.

OpenDS.jar file is required by the command line uninstaller to share some code.

I preferred not to try to delete these files from the scripts as we cannot provide proper feedback (for instance localization) if we encounter a problem deleting these files.

In both cases we inform the user that there are some files that must be deleted manually.

7. Provide the code to launch uninstall through command line that is analogous in terms of interaction to the graphical one.

I have included two scripts to launch the uninstallation. The uninstall script for Unix is very similar to the setup script. However the uninstall.bat script has a difference with setup.bat.

The difference is that I limit the class path to include only quicksetup.jar. This is done because I have not found a way to delete the jar files that are in the class path of the java application using pure java code, so as the uninstaller does only require OpenDS.jar and quicksetup.jar files I have chosen to minimize the jar files in the class path.

This way the only files that are not deleted during installation is quicksetup.jar and OpenDS.jar.

8. Improve the wording of the install wizard as proposed by Brian and Neil.

9 . One minor tweak to the QuickSetup Welcome screen: make the reference to the "setup" command a monospace font to highlight it a bit more.

10. Fix for issue 1057 (stop-ds.bat and start-ds.bat do not work when called using Runtime.exec). The quicksetup code used to overwrite the environment variables when calling Runtime.exec which made the server not be able to start/stop correctly.

11. Fix some minor bugs with the default focus on some panels.

12. Update the setup scripts to use the java home file if the setup was previously called.
2 files copied
9 files added
4 files renamed
32 files modified
6821 ■■■■■ changed files
opends/build.xml 13 ●●●● diff | view | raw | blame | history
opends/resource/setup 19 ●●●●● diff | view | raw | blame | history
opends/resource/setup.bat 10 ●●●●● diff | view | raw | blame | history
opends/resource/uninstall 123 ●●●●● diff | view | raw | blame | history
opends/resource/uninstall.bat 63 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ButtonName.java 6 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/CurrentInstallStatus.java 226 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/QuickSetup.java 511 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/event/InstallProgressUpdateEvent.java 10 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/event/InstallProgressUpdateListener.java 8 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/event/UninstallProgressUpdateEvent.java 22 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/event/UninstallProgressUpdateListener.java 12 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/i18n/ResourceProvider.java 4 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/FieldName.java 34 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/InstallException.java 2 ●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/InstallLauncher.java 10 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java 308 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java 25 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/offline/OfflineInstaller.java 66 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/webstart/JnlpProperties.java 2 ●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartDownloader.java 14 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java 49 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/resources/Resources.properties 312 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java 75 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/ConfirmUninstallPanel.java 266 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/CurrentStepPanel.java 32 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/DirectoryManagerAuthenticationDialog.java 513 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/InstallWelcomePanel.java 30 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/ProgressPanel.java 44 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupDialog.java 54 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupErrorPanel.java 2 ●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupStepPanel.java 30 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/ServerSettingsPanel.java 34 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/UIFactory.java 54 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallCli.java 1108 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallException.java 92 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallLauncher.java 250 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallProgressStep.java 12 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/uninstaller/Uninstaller.java 1211 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/uninstaller/UserUninstallData.java 271 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/uninstaller/UserUninstallDataException.java 76 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/HtmlProgressMessageFormatter.java 50 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/PlainTextProgressMessageFormatter.java 284 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/ProgressMessageFormatter.java 31 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/URLWorker.java 4 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java 447 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/WebBrowserException.java 2 ●●● diff | view | raw | blame | history