From c1621947fe4af5e189f440d711f855a51850712a Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 16 Nov 2007 16:41:24 +0000
Subject: [PATCH] Fix for issue 1618 unable to install to folder with DN syntax.
---
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
index a50ccf5..63efce0 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -134,6 +134,18 @@
}
/**
+ * Returns the String that can be used to launch an script using Runtime.exec.
+ * This method is required because in Windows the script that contain a "="
+ * in their path must be quoted.
+ * @param script the script name
+ * @return the absolute path for the given parentPath and relativePath.
+ */
+ public static String getScriptPath(String script)
+ {
+ return SetupUtils.getScriptPath(script);
+ }
+
+ /**
* Returns the absolute path for the given parentPath and relativePath.
* @param f File to get the path
* @return the absolute path for the given parentPath and relativePath.
--
Gitblit v1.10.0