From 313c7ce226afaa79e811d6fa0f5ad8b8a59f0fd5 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 13 Aug 2007 14:48:19 +0000
Subject: [PATCH] Provide a new org.opends.server.util.EmbeddedUtils class that can be used to simplify the process of running the server as an embedded application. There are methods to start, stop, and restart the server, as well as to determine whether the server is running. Also, provide a new org.opends.server.types.DirectoryEnvironmentConfig class that can be used to define a number of "environment" properties that provide information about the way in which the server should run.
---
opends/src/server/org/opends/server/util/StaticUtils.java | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/opends/src/server/org/opends/server/util/StaticUtils.java b/opends/src/server/org/opends/server/util/StaticUtils.java
index e2ea4e5..a1f8602 100644
--- a/opends/src/server/org/opends/server/util/StaticUtils.java
+++ b/opends/src/server/org/opends/server/util/StaticUtils.java
@@ -2264,15 +2264,7 @@
*/
public static boolean mayUseExec()
{
- String s = System.getProperty(PROPERTY_DISABLE_EXEC);
- if (s == null)
- {
- return true;
- }
-
- s = toLowerCase(s);
- return (s.equals("false") || s.equals("off") || s.equals("no") ||
- s.equals("0"));
+ return (! DirectoryServer.getEnvironmentConfig().disableExec());
}
--
Gitblit v1.10.0