From ef632b7eec69d4cce09c45c299a0b0fa0fd69b3c Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 02 Jun 2008 20:44:47 +0000
Subject: [PATCH] Fix for issue 3311 (import-ldif --templateFile does not work when the server is running) The fix consists on not assuming that the ldif file path is required to launch an import (the ds-task-import task definition has been modified for this) and allowing to create a task that imports contents based on a template.
---
opends/src/server/org/opends/server/util/cli/CommandBuilder.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/server/org/opends/server/util/cli/CommandBuilder.java b/opends/src/server/org/opends/server/util/cli/CommandBuilder.java
index 3c9bf11..a75b3aa 100644
--- a/opends/src/server/org/opends/server/util/cli/CommandBuilder.java
+++ b/opends/src/server/org/opends/server/util/cli/CommandBuilder.java
@@ -249,15 +249,15 @@
}
// Chars that require special treatment when passing them to command-line.
- private final char[] charsToEscape = {' ', '\t', '\n', '|', ';', '<', '>',
- '(', ')', '$', '`', '\\', '"', '\''};
+ private final static char[] charsToEscape = {' ', '\t', '\n', '|', ';', '<',
+ '>', '(', ')', '$', '`', '\\', '"', '\''};
/**
* This method simply takes a value and tries to transform it (with escape or
* '"') characters so that it can be used in a command line.
* @param value the String to be treated.
* @return the transformed value.
*/
- private String escapeValue(String value)
+ public static String escapeValue(String value)
{
StringBuilder b = new StringBuilder();
if (SetupUtils.isUnix())
--
Gitblit v1.10.0