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

jvergara
04.04.2010 7c4ed8f11b7276df2f3d302b3d64750c7cb4bbd4
Fix for issue 4416 (Incorrect Review step in webstart installer)
This is a regression introduced with the new review panel done for issue https://opends.dev.java.net/issues/show_bug.cgi?id=4414.
1 files modified
19 ■■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java 19 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 */
package org.opends.quicksetup.util;
@@ -2296,7 +2296,7 @@
    {
      setupFile = Installation.UNIX_SETUP_FILE_NAME;
    }
    cmdLine.add(getInstallDir() + setupFile);
    cmdLine.add(getInstallDir(userData) + setupFile);
    cmdLine.add("--cli");
    for (String baseDN : getBaseDNs(userData))
@@ -2611,12 +2611,19 @@
   * Returns the installation directory.
   * @return the installation directory.
   */
  private static String getInstallDir()
  private static String getInstallDir(UserData userData)
  {
    if (installDir == null)
    if (isWebStart() || installDir == null)
    {
      File f =
        org.opends.quicksetup.Installation.getLocal().getRootDirectory();
      File f;
      if (isWebStart())
      {
        f = new File(userData.getServerLocation());
      }
      else
      {
        f = org.opends.quicksetup.Installation.getLocal().getRootDirectory();
      }
      try
      {
        installDir = f.getCanonicalPath();