opends/src/server/org/opends/server/util/args/Argument.java
@@ -88,6 +88,9 @@ // information. private String valuePlaceholder; // Indicates whether this argument was provided in the set of properties // found is a properties file. private boolean isValueSetByProperty; /** @@ -139,6 +142,7 @@ this.defaultValue = defaultValue; this.propertyName = propertyName; this.description = description; this.isValueSetByProperty = false ; if ((shortIdentifier == null) && (longIdentifier == null)) { @@ -434,7 +438,31 @@ this.propertyName = propertyName; } /** * Indicates whether this argument was provided in the set of * properties found is a properties file. * * @return <CODE>true</CODE> if this argument was provided in the * set of properties found is a properties file, or * <CODE>false</CODE> if not. */ public boolean isValueSetByProperty() { return isValueSetByProperty; } /** * Specifies whether this argument was provided in the set of * properties found is a properties file. * * @param isValueSetByProperty * Specify whether this argument was provided in the set * of properties found is a properties file. */ public void setValueSetByProperty(boolean isValueSetByProperty) { this.isValueSetByProperty = isValueSetByProperty; } /** * Retrieves the human-readable description for this argument. opends/src/server/org/opends/server/util/args/ArgumentParser.java
@@ -1002,19 +1002,12 @@ .toLowerCase()); if (value != null) { a.addValue(value); if (a.needsValue()) { a.addValue(value); a.setPresent(true); } else if (value.toLowerCase().equals(CONFIG_VALUE_TRUE)) { // Boolean value. Set to "present" only if // value property value is "true" // (insensitive case) a.setPresent(true); } a.setValueSetByProperty(true); } } } opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java
@@ -1241,19 +1241,12 @@ .toLowerCase()); if (value != null) { a.addValue(value); if (a.needsValue()) { a.addValue(value); a.setPresent(true); } else if (value.toLowerCase().equals(CONFIG_VALUE_TRUE)) { // Boolean value. Set to "present" only if // value property value is "true" // (insensitive case) a.setPresent(true); } a.setValueSetByProperty(true); } } } @@ -1293,19 +1286,12 @@ .toLowerCase()); if (value != null) { a.addValue(value); if (a.needsValue()) { a.addValue(value); a.setPresent(true); } else if (value.toLowerCase().equals(CONFIG_VALUE_TRUE)) { // Boolean value. Set to "present" only if // value property value is "true" // (insensitive case) a.setPresent(true); } a.setValueSetByProperty(true); } } } opends/src/server/org/opends/server/util/cli/LDAPConnectionConsoleInteraction.java
@@ -335,6 +335,12 @@ secureArgsList.useSSLArg.isPresent() || secureArgsList.useStartTLSArg.isPresent() || ( secureArgsList.useSSLArg.isValueSetByProperty() && secureArgsList.useStartTLSArg.isValueSetByProperty() ) ); if (app.isInteractive() && !connectionTypeIsSet) {