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

matthew_swift
17.29.2007 d97613453f1162868c1353b5d8f6cc0fbaea5107
refs
author matthew_swift <matthew_swift@localhost>
Tuesday, July 17, 2007 18:29 +0200
committer matthew_swift <matthew_swift@localhost>
Tuesday, July 17, 2007 18:29 +0200
commitd97613453f1162868c1353b5d8f6cc0fbaea5107
tree 49a9040134a2cd9b156ed968825763bcea7dab52 tree | zip | gz
parent 04efad91f2bc18c869c9cd411bb87e226f2dc021 view | diff
Fix issue 1946: make it easier to read multi-valued DN properties. The get-xxx-prop sub-commands separate multi-valued properties using comma separators. This makes the display quite hard to read when the values are DNs because the DNs themselves contain commas. This change modifies the property value printing for dsconfig so that any values containing a comma or that entirely comprise of white-space are double-quoted. Thus, the DN dc=com stays as dc=com and the value dc=example,dc=com becomes "dc=example,dc=com".

Note that the get-xxx-prop sub-commands also support a one value per line mode (-E) which makes multi-valued properties easier to read. The sub-commands also support a script-friendly mode where no quoting is performed.
1 files modified
11 ■■■■■ changed files
opends/src/server/org/opends/server/tools/dsconfig/PropertyValuePrinter.java 11 ●●●●● diff | view | raw | blame | history