From b671de6dbf50ca89cb0b9e4d7da6c81ae3017c82 Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Tue, 18 Feb 2014 14:19:36 +0000
Subject: [PATCH] Checkpoint OPENDJ-1343 Migrate dsconfig / OPENDJ-1303 "opendj-cli" - org.opends.server.util.cli.[*] calls replaced by equivalent CLI sdk's classes. - fixed upgrade cli -> <string<.equals(LocalizedMessaged) - moved methods from console application to ReplicationMainCli.

---
 opendj3-server-dev/src/server/org/opends/server/tools/dsreplication/LocalPurgeHistorical.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/tools/dsreplication/LocalPurgeHistorical.java b/opendj3-server-dev/src/server/org/opends/server/tools/dsreplication/LocalPurgeHistorical.java
index d86dfb3..5c24073 100644
--- a/opendj3-server-dev/src/server/org/opends/server/tools/dsreplication/LocalPurgeHistorical.java
+++ b/opendj3-server-dev/src/server/org/opends/server/tools/dsreplication/LocalPurgeHistorical.java
@@ -44,7 +44,7 @@
 import org.opends.server.util.EmbeddedUtils;
 import org.opends.server.util.StaticUtils;
 import org.opends.server.util.TimeThread;
-import org.opends.server.util.cli.ConsoleApplication;
+import com.forgerock.opendj.cli.ConsoleApplication;
 import org.opends.server.util.cli.PointAdder;
 
 /**
@@ -99,7 +99,7 @@
 
     long endMaxTime = startTime + purgeMaxTime;
 
-    app.printProgress(formatter.getFormattedProgress(
+    app.print(formatter.getFormattedProgress(
         INFO_REPLICATION_PURGE_HISTORICAL_LOCAL_ENVIRONMENT.get()));
 
     PointAdder pointAdder = new PointAdder(app);
@@ -145,12 +145,12 @@
       return ReplicationCliReturnCode.ERROR_LOCAL_PURGE_HISTORICAL_SERVER_START;
     }
     pointAdder.stop();
-    app.printProgress(formatter.getFormattedDone());
-    app.printlnProgress();
-    app.printlnProgress();
-    app.printProgress(formatter.getFormattedProgress(
+    app.print(formatter.getFormattedDone());
+    app.println();
+    app.println();
+    app.print(formatter.getFormattedProgress(
         INFO_REPLICATION_PURGE_HISTORICAL_LOCAL_STARTING.get()));
-    app.printlnProgress();
+    app.println();
 
     if (applyTimeout && timeoutOccurred(endMaxTime))
     {

--
Gitblit v1.10.0