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

jvergara
09.28.2009 06ec8c88556b02782c7b91a233de91eaf4a1439d
opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java
@@ -110,6 +110,25 @@
    try
    {
      DirectoryServer.getInstance().initializeConfiguration();
      if (mustReadSchema())
      {
        try
        {
          readSchema();
          if (getSchema() != null)
          {
            // Update the schema: so that when we call the server code the
            // latest schema read on the server we are managing is used.
            DirectoryServer.setSchema(getSchema());
          }
        }
        catch (OpenDsException oe)
        {
          ex.add(oe);
        }
      }
      // Get the Directory Server configuration handler and use it.
      RootCfg root =
        ServerManagementContext.getInstance().getRootConfiguration();
@@ -343,18 +362,6 @@
      {
        ex.add(oe);
      }
      if (mustReadSchema())
      {
        try
        {
          readSchema();
        }
        catch (OpenDsException oe)
        {
          ex.add(oe);
        }
      }
    }
    catch (OpenDsException oe)
    {