From 7ad3b49f29529fc14f6f0732dc39062a1faf94e2 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Tue, 25 Sep 2007 07:32:05 +0000
Subject: [PATCH] With these modificationd, if both useSSL and useStartTls are set to false in the properties file, dsconfig interactive mode will not prompt for protocol.
---
opendj-sdk/opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java | 22 ++++------------------
1 files changed, 4 insertions(+), 18 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java b/opendj-sdk/opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java
index 9adc76d..9acaa64 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java
+++ b/opendj-sdk/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);
}
}
}
--
Gitblit v1.10.0