| | |
| | | { |
| | | if (userData.getRemoveLibrariesAndTools()) |
| | | { |
| | | String[] arg = {getTab()+getQuicksetupJarPath()+ |
| | | getLineBreak()+getTab()+getOpenDSJarPath()}; |
| | | String[] arg = {getLibrariesPath()}; |
| | | successMsg = getMsg( |
| | | "summary-uninstall-finished-successfully-remove-jarfiles-cli", |
| | | arg); |
| | |
| | | { |
| | | if (userData.getRemoveLibrariesAndTools()) |
| | | { |
| | | String[] arg = {getTab()+getQuicksetupJarPath()+ |
| | | getLineBreak()+getTab()+getOpenDSJarPath()}; |
| | | String[] arg = {getLibrariesPath()}; |
| | | successMsg = getMsg( |
| | | "summary-uninstall-finished-successfully-remove-jarfiles", arg); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the path to the quicksetup jar file. |
| | | * @return the path to the quicksetup jar file. |
| | | */ |
| | | private String getQuicksetupJarPath() |
| | | { |
| | | return Utils.getPath(getLibrariesPath(), "quicksetup.jar"); |
| | | } |
| | | |
| | | /** |
| | | * Returns the path to the open ds jar file. |
| | | * @return the path to the open ds jar file. |
| | | */ |
| | | private String getOpenDSJarPath() |
| | | { |
| | | return Utils.getPath(getLibrariesPath(), "OpenDS.jar"); |
| | | } |
| | | |
| | | /** |
| | | * Returns the path to the backup files under the install path. |
| | | * @return the path to the backup files under the install path. |
| | | */ |
| | |
| | | */ |
| | | class InstallationFilesToDeleteFilter implements FileFilter |
| | | { |
| | | File quicksetupFile = new File(getQuicksetupJarPath()); |
| | | File openDSFile = new File(getOpenDSJarPath()); |
| | | File librariesFile = new File(getLibrariesPath()); |
| | | |
| | | File installationPath = new File(Utils.getInstallPathFromClasspath()); |
| | |
| | | }; |
| | | |
| | | boolean accept = |
| | | !installationPath.equals(file) |
| | | && !librariesFile.equals(file) |
| | | && !quicksetupFile.equals(file) |
| | | && !openDSFile.equals(file); |
| | | !installationPath.equals(file)&& |
| | | !equalsOrDescendant(file, librariesFile); |
| | | |
| | | for (int i=0; i<uData.length && accept; i++) |
| | | { |