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

Nicolas Capponi
19.50.2013 13da562e3e11baa35131967d3b1a1dd12a6996a5
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Tuesday, November 19, 2013 14:50 +0100
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Tuesday, November 19, 2013 14:50 +0100
commit13da562e3e11baa35131967d3b1a1dd12a6996a5
tree 0343137f7ea19b889e283631e034ef74fdc5cef1 tree | zip | gz
parent 869998098af41978080fadabbfab637030ec7aa3 view | diff
OPENDJ-1075 Port server make-ldif tool to the SDK
CR-2603

CLI for MakeLDIF

* Class MakeLDIF.java
- uses the new EntryGenerator class from opendj-core to generate entries
- uses LDIFEntryWriter class from opendj-core to write entries to LDIF
* Differences from opendj server version :
- remove configfile and configclass options
- add "--constant" ("-c") option to provide constants from the command line
those constants override pre-defined constants in template file
- if no "--ldiffile" option is provided, output LDIF to the standard output
* Add MakeLDIFTestCase to test basic behavior of the tool
2 files modified
2 files added
430 ■■■■■ changed files
opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/ConsoleApplication.java 15 ●●●● diff | view | raw | blame | history
opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/MakeLDIF.java 256 ●●●●● diff | view | raw | blame | history
opendj3/opendj-ldap-toolkit/src/main/resources/com/forgerock/opendj/ldap/tools/tools.properties 29 ●●●●● diff | view | raw | blame | history
opendj3/opendj-ldap-toolkit/src/test/java/com/forgerock/opendj/ldap/tools/MakeLDIFTestCase.java 130 ●●●●● diff | view | raw | blame | history