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

lutoff
23.12.2008 a5910087362b3f93588d6ec02e8a64357caab032
fix for issue #3490 ( Uninstall produces a lot of erroneous warnings...)	
1 files modified
23 ■■■■■ changed files
opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java 23 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java
@@ -1112,18 +1112,39 @@
      notifyListeners(getFormattedWithPoints(
          INFO_PROGRESS_DELETING_INSTALLATION_FILES_NON_VERBOSE.get()));
    }
    String installPath = getInstallPathFromClasspath();
    File installFile = new File(installPath);
    try
    {
      installPath = installFile.getCanonicalPath();
    }
    catch(Exception e)
    {
      installPath = getInstallPathFromClasspath();
    }
    String instancePath =
      Utils.getInstancePathFromClasspath(installFile.getAbsolutePath());
    File instanceFile = new File(instancePath);
    try
    {
      instancePath = instanceFile.getCanonicalPath();
    } catch (Exception e)
    {
      instancePath =
        Utils.getInstancePathFromClasspath(installFile.getAbsolutePath());
    }
    InstallationFilesToDeleteFilter filter =
            new InstallationFilesToDeleteFilter();
    File[] installFiles  = installFile.listFiles();
    File[] instanceFiles = new File(instancePath).listFiles();
    File[] instanceFiles  = null ;
    if (! installPath.equals(instancePath))
    {
      instanceFiles = new File(instancePath).listFiles();
    }
    File[] rootFiles = null;