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

Jean-Noel Rouvignac
03.02.2015 b0974e2dddd8c7e61fa092eb21f194144e763fed
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, February 3, 2015 12:02 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, February 3, 2015 12:02 +0100
commitb0974e2dddd8c7e61fa092eb21f194144e763fed
tree 40978ffcbcfb9d1ed346d8623702ae477f020ec8 tree | zip | gz
parent 9f58927c4d72a317427d795e7c41e33e6e56beab view | diff
OPENDJ-1242 (CR-5940) Enable dsconfig to generate doc for properties changed through subcommand options

Left code generating the reference documentation in opendj-cli SubCommandArgumentParser, so it can be reused with other tools using SubCommandArgumentParser.
Created SubCommandUsageHandler interface to allow outputing additional documentation + implemented it in opendj-config DSConfig, this way the code can access all the config classes and generate the reference documentation inline with the command usage.


SubCommandArgumentParser.java:
Added subCommandUsageHandler field + setter.
In toRefSect2(), used subCommandUsageHandler to output additional documentation.

DSConfig.java:
Created inner class DSConfigSubCommandUsageHandler + copied code from ConfigGuideGeneration to here.
1 files added
2 files modified
448 ■■■■■ changed files
opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/SubCommandArgumentParser.java 17 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/SubCommandUsageHandler.java 46 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/dsconfig/DSConfig.java 385 ●●●●● diff | view | raw | blame | history