From a1c05a12054b831b0aead0bd5eac9c6bdac6a655 Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Tue, 17 Nov 2015 17:27:16 +0000
Subject: [PATCH] OPENDJ-2364 PR-148 Change backend type during upgrade
---
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeUtils.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeUtils.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeUtils.java
index 4438939..577d410 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeUtils.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeUtils.java
@@ -91,6 +91,9 @@
configDirectory + File.separator + Installation.SNMP_PATH_RELATIVE
+ File.separator + Installation.SECURITY_PATH_RELATIVE);
+ /** The lib folder of the current installation. */
+ static final File libDirectory = new File(getInstallationPath(), Installation.LIB_RELATIVE_PATH);
+
/** The bin folder of the current installation. */
static final File binDirectory = new File(getInstallationPath(), Installation.UNIX_BINARIES_PATH_RELATIVE);
@@ -265,6 +268,12 @@
return getPath(new File(new File(parentPath), relativePath));
}
+ static File getFileForPath(String path)
+ {
+ final File f = new File(path);
+ return f.isAbsolute() ? f : new File(getInstancePath() + File.separator + path);
+ }
+
/**
* Determines whether one file is the parent of another.
*
--
Gitblit v1.10.0