From dc0cff95d5c42511ca2957b7c8469831983d7e2e Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 23 Aug 2007 17:46:41 +0000
Subject: [PATCH] Expands the interfaces of backup and restore with arguments for specifying an LDAP connection that can be used to schedule these operations as tasks in addition to the current behavior of operating locally.

---
 opends/src/server/org/opends/server/tools/ImportLDIF.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/tools/ImportLDIF.java b/opends/src/server/org/opends/server/tools/ImportLDIF.java
index 3ca389e..35c42cc 100644
--- a/opends/src/server/org/opends/server/tools/ImportLDIF.java
+++ b/opends/src/server/org/opends/server/tools/ImportLDIF.java
@@ -365,7 +365,7 @@
       argParser.addArgument(isEncrypted);
 
 
-      quietMode = new BooleanArgument("quietmode", null, "quiet",
+      quietMode = new BooleanArgument("quietmode", 'Q', "quiet",
                                       INFO_LDIFIMPORT_DESCRIPTION_QUIET.get());
       argParser.addArgument(quietMode);
 
@@ -441,6 +441,11 @@
       return 1;
     }
 
+    // Don't write non-error messages to console if quite
+    if (quietMode.isPresent()) {
+      out = new PrintStream(NullOutputStream.instance());
+    }
+
     return process(argParser, initializeServer, out, err);
   }
 

--
Gitblit v1.10.0