From 5ae7c5f6cb246b7081df4471899e12502e9102ac Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 27 Jan 2009 22:03:41 +0000
Subject: [PATCH] Allow the overwriting classes to specify whether the schema must be read or not.

---
 opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java
index 3096624..c421db5 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java
@@ -109,7 +109,7 @@
     try
     {
       DirectoryServer.getInstance().initializeConfiguration();
-      // Get the Directory Server configuration handler and use it.ad
+      // Get the Directory Server configuration handler and use it.
       RootCfg root =
         ServerManagementContext.getInstance().getRootConfiguration();
       try
@@ -341,13 +341,16 @@
         ex.add(oe);
       }
 
-      try
+      if (mustReadSchema())
       {
-        readSchema();
-      }
-      catch (OpenDsException oe)
-      {
-        ex.add(oe);
+        try
+        {
+          readSchema();
+        }
+        catch (OpenDsException oe)
+        {
+          ex.add(oe);
+        }
       }
     }
     catch (OpenDsException oe)

--
Gitblit v1.10.0