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

Chris Ridd
19.31.2015 44b9e159c0312d8f76f4193e8e97e5cccf0497d4
CR-7318 OPENDJ-2152 fix boolean properties in tools.properties files
2 files modified
6 ■■■■ changed files
opendj-cli/src/main/java/com/forgerock/opendj/cli/ArgumentParser.java 4 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPSearch.java 2 ●●● patch | view | raw | blame | history
opendj-cli/src/main/java/com/forgerock/opendj/cli/ArgumentParser.java
@@ -1773,8 +1773,8 @@
                final String value = argumentProperties.getProperty(a.getPropertyName().toLowerCase());
                final LocalizableMessageBuilder invalidReason = new LocalizableMessageBuilder();
                if (value != null) {
                    boolean addValue = !(a instanceof BooleanArgument)
                            && a.valueIsAcceptable(value, invalidReason);
                    boolean addValue = (a instanceof BooleanArgument) ? true
                            : a.valueIsAcceptable(value, invalidReason);
                    if (addValue) {
                        a.addValue(value);
                        if (a.needsValue()) {
opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPSearch.java
@@ -959,7 +959,7 @@
      subEntriesArgument = new BooleanArgument("subEntries",
              OPTION_SHORT_SUBENTRIES, OPTION_LONG_SUBENTRIES,
              INFO_DESCRIPTION_SUBENTRIES.get());
      useSSL.setPropertyName(OPTION_LONG_SUBENTRIES);
      subEntriesArgument.setPropertyName(OPTION_LONG_SUBENTRIES);
      argParser.addArgument(subEntriesArgument);
      effectiveRightsUser =