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

Fabio Pistolesi
05.43.2016 1404def3f16710d36a874d819613f7f0c4e12ee7
refs
author Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Tuesday, July 5, 2016 18:43 +0200
committer Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Thursday, July 7, 2016 10:33 +0200
commit1404def3f16710d36a874d819613f7f0c4e12ee7
tree 0d8bdaf057a480291c20ecb0acde98262ef20f51 tree | zip | gz
parent e54deb8b792b9b16880f7e3c3783aa0c620d1721 view | diff
OPENDJ-2748 OPENDJ-1667 dsconfig --displayCommand should print a usable command and parse it correctly afterwards

Printing the command should not wrap it on the terminal, otherwise embedded spaces could be lost.
Parsing the command back, either batch file or stdin, requires handling escape sequencing and double quotes around multiword values.
Add unescaping of sequences even in multiword values, to take into account shell escapes.
1 files added
2 files modified
139 ■■■■ changed files
opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java 12 ●●●●● diff | view | raw | blame | history
opendj-config/src/main/java/org/forgerock/opendj/config/dsconfig/DSConfig.java 79 ●●●●● diff | view | raw | blame | history
opendj-config/src/test/java/org/forgerock/opendj/config/dsconfig/DSConfigParseTest.java 48 ●●●●● diff | view | raw | blame | history