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

jvergara
24.04.2007 8e087f21322ea3336fe68cc9023653a1776ecdbc
Complete fix for issue 2510 (Initialize progress should display that 100 % entries are processed).  The following changes apply to the initialize topology command.

When the initialize is finished (successful or not) print in the output the message we calculated if it has not been displayed yet.
1 files modified
20 ■■■■ changed files
opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java 20 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java
@@ -5476,8 +5476,7 @@
          }
          if (displayProgress)
          {
            if (!msg.equals(lastDisplayedMsg) &&
                ((currentTime - minRefreshPeriod) > lastTimeMsgDisplayed) &&
            if (((currentTime - minRefreshPeriod) > lastTimeMsgDisplayed) &&
                !msg.equals(lastDisplayedMsg))
            {
              printProgressMessage(msg);
@@ -5504,6 +5503,12 @@
        {
          isOver = true;
          Message errorMsg;
          if (displayProgress && (msg != null) && !msg.equals(lastDisplayedMsg))
          {
            printProgressMessage(msg);
            lastDisplayedMsg = msg;
            printProgressLineBreak();
          }
          if (lastLogMsg == null)
          {
            errorMsg = INFO_ERROR_DURING_INITIALIZATION_NO_LOG.get(
@@ -5543,11 +5548,14 @@
              throw ae;
            }
          }
          else if (displayProgress)
          {
          else
            {
            if (displayProgress)
            {
              printProgressMessage(INFO_SUFFIX_INITIALIZED_SUCCESSFULLY.get());
              printProgressLineBreak();
            }
            LOG.log(Level.INFO, "Initialization completed successfully.");
            printProgressMessage(INFO_SUFFIX_INITIALIZED_SUCCESSFULLY.get());
            printProgressLineBreak();
          }
        }
      }