From e01ad71d761c65c94cd8531763c914c07927ea60 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Thu, 01 Sep 2011 10:12:08 +0000
Subject: [PATCH] Fix issue OPENDJ-207, to avoid triggering X11 server when using setup --cli mode.

---
 opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
index 1d6df57..24881a2 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
@@ -2240,13 +2240,16 @@
    * @param hmSummary the Map containing the messages.
    */
   protected void updateSummaryWithServerState(
-      Map<InstallProgressStep, Message> hmSummary)
+      Map<InstallProgressStep, Message> hmSummary, Boolean isCli)
   {
    Installation installation = getInstallation();
    String cmd = getPath(installation.getControlPanelCommandFile());
-   cmd = Utils.addWordBreaks(
+   if (! isCli)
+   {
+     cmd = Utils.addWordBreaks(
        UIFactory.applyFontToHtml(cmd, UIFactory.INSTRUCTIONS_MONOSPACE_FONT),
        60, 5);
+   }
    Message status;
    if (installation.getStatus().isServerRunning())
    {

--
Gitblit v1.10.0