From e0c5b184252862e29ca271955bcd15eebd752830 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 05 Jul 2007 17:16:26 +0000
Subject: [PATCH] Update the import-ldif utility so that it includes a new "--countRejects" option that can be used to count the number of rejected entries. That value will be used as the exit code, and can be used in scripts to determine if there were any failures during the import.
---
opends/src/server/org/opends/server/backends/jeb/BackendImpl.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java b/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
index 2138997..69a15e5 100644
--- a/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
+++ b/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
@@ -1043,7 +1043,7 @@
/**
* {@inheritDoc}
*/
- public void importLDIF(LDIFImportConfig importConfig)
+ public LDIFImportResult importLDIF(LDIFImportConfig importConfig)
throws DirectoryException
{
// If the backend already has the root container open, we must use the same
@@ -1100,7 +1100,7 @@
initializeRootContainer(envConfig);
ImportJob importJob = new ImportJob(importConfig);
- importJob.importLDIF(rootContainer);
+ return importJob.importLDIF(rootContainer);
}
catch (IOException ioe)
{
--
Gitblit v1.10.0