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

Jean-Noel Rouvignac
03.02.2015 98a7494fc691c5a5af0bfac786fad827af567746
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
commit98a7494fc691c5a5af0bfac786fad827af567746
tree 69b9d7bbce58676029cd4d4ae7ebb595e3527d04 tree | zip | gz
parent dad3fe877308a70643d54d7416ed5aa5b3918f6d 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-cli/src/main/java/com/forgerock/opendj/cli/SubCommandArgumentParser.java 17 ●●●● diff | view | raw | blame | history
opendj-cli/src/main/java/com/forgerock/opendj/cli/SubCommandUsageHandler.java 46 ●●●●● diff | view | raw | blame | history
opendj-config/src/main/java/org/forgerock/opendj/config/dsconfig/DSConfig.java 385 ●●●●● diff | view | raw | blame | history