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

jarnou
09.13.2007 9a8d97c273430b8eb0ab9afc4209f555321da4e8
refs
author jarnou <jarnou@localhost>
Monday, July 9, 2007 18:13 +0200
committer jarnou <jarnou@localhost>
Monday, July 9, 2007 18:13 +0200
commit9a8d97c273430b8eb0ab9afc4209f555321da4e8
tree a8727801258b76a6749b725eb161af9b3106e9d2 tree | zip | gz
parent 7dd03312f16faf4b3dea35886446bb15e6c30207 view | diff
Bug: 1428
Synopsis: import-ldif could allow to write skipped entries to a specified file

Proposed solution
-------------------------------
I've added an option to the import tool so that the skipped entries (the entries that do not match criteria) are logged in a given file if required.
Additionally the option -O, --overwriteRejects has been renamed into:
-O, --overwrite. This option is now common to both reject file and skip file.
Indeed if a user wants to append or overwrite a reject file, it is likely that he wants the same for the skip file.

The new option is -K (--skipFile), the updated option is -O (--overwrite)

The usage:

This utility may be used to import LDIF data into a Directory Server backend
Usage: java org.opends.server.tools.ImportLDIF {options}
where {options} include:
-V, --version
Display Directory Server version information
...
-R, --rejectFile {rejectFile}
Write rejected entries to the specified file
-K, --skipFile {skipFile}
Write skipped entries to the specified file
-O, --overwrite
Overwrite an existing rejects and/or skip file rather than appending to it
...
8 files modified
424 ■■■■■ changed files
opends/src/server/org/opends/server/config/ConfigConstants.java 15 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/messages/ToolMessages.java 29 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/messages/UtilityMessages.java 32 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tasks/ImportTask.java 46 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/ImportLDIF.java 47 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/types/LDIFImportConfig.java 124 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/LDIFReader.java 65 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestImportJob.java 66 ●●●●● diff | view | raw | blame | history