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

jvergara
24.04.2007 38f03eff072d27155fe27af57b5e86a7935ab5a4
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
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java 20 ●●●● patch | view | raw | blame | history
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();
          }
        }
      }