From d7a227add26ea9b1fa1ce5a8bf8838059d2f0c98 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 18 Dec 2006 13:33:24 +0000
Subject: [PATCH] Fix some issues with the dialog position when they were displayed.
---
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
index b01ccce..aae9180 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
@@ -926,9 +926,9 @@
* message id informing that it started. So it seems that everything
* went fine.
*
- * However in Windows we can have issues with the firewalls. Just check
- * if we can connect to the server. Try 5 times with an interval of
- * 1 second between try.
+ * However we can have issues with the firewalls or do not have rights
+ * to connect. Just check if we can connect to the server.
+ * Try 5 times with an interval of 1 second between try.
*/
boolean connected = false;
for (int i=0; i<5 && !connected; i++)
@@ -958,9 +958,18 @@
}
if (!connected)
{
- String[] arg = {String.valueOf(userData.getServerPort())};
- throw new InstallException(InstallException.Type.START_ERROR,
- getMsg("error-starting-server-in-windows", arg), null);
+ if (Utils.isWindows())
+ {
+ String[] arg = {String.valueOf(userData.getServerPort())};
+ throw new InstallException(InstallException.Type.START_ERROR,
+ getMsg("error-starting-server-in-windows", arg), null);
+ }
+ else
+ {
+ String[] arg = {String.valueOf(userData.getServerPort())};
+ throw new InstallException(InstallException.Type.START_ERROR,
+ getMsg("error-starting-server-in-unix", arg), null);
+ }
}
}
--
Gitblit v1.10.0