From e08ee9a21301e4607806ff0230eca74d6dc3b13b Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Sat, 07 Apr 2007 00:06:48 +0000
Subject: [PATCH] completed migration of code to use Installer constants and methods for filesystem related tasks
---
opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/ConfigFromFile.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/ConfigFromFile.java b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/ConfigFromFile.java
index 27211d2..dbffbf1 100644
--- a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/ConfigFromFile.java
+++ b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/ConfigFromFile.java
@@ -43,6 +43,7 @@
import org.opends.server.types.ObjectClass;
import org.opends.statuspanel.i18n.ResourceProvider;
import org.opends.quicksetup.util.Utils;
+import org.opends.quicksetup.Installation;
/**
* This class is used to retrieve configuration information directly from the
@@ -88,8 +89,10 @@
errorMessage = null;
try
{
+ Installation installation =
+ new Installation(Utils.getInstallPathFromClasspath());
LDIFImportConfig c = new LDIFImportConfig(
- Utils.getConfigFileFromClasspath());
+ Utils.getPath(installation.getCurrentConfigurationFile()));
LDIFReader reader = new LDIFReader(c);
for (Entry entry = reader.readEntry(false); entry != null;
entry = reader.readEntry(false))
--
Gitblit v1.10.0