From 5adde80225f547ffe8d50ca83efd121e495d8e53 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 07 Jun 2007 17:31:48 +0000
Subject: [PATCH] This commit:
---
opends/src/quicksetup/org/opends/quicksetup/Configuration.java | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/Configuration.java b/opends/src/quicksetup/org/opends/quicksetup/Configuration.java
index 7442f3d..ceca3d5 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Configuration.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Configuration.java
@@ -118,8 +118,7 @@
int index1 = getContents().indexOf(attrWithPoints, index);
if (index1 != -1) {
int index2 =
- getContents().indexOf(
- System.getProperty("line.separator"), index1);
+ getContents().indexOf(Constants.LINE_SEPARATOR, index1);
if (index2 != -1) {
String sPort =
getContents().substring(attrWithPoints.length() +
@@ -184,7 +183,7 @@
String line;
// We do not care about encoding: we are just interested in the ports
while ((line = in.readLine()) != null) {
- buf.append(line).append(System.getProperty("line.separator"));
+ buf.append(line).append(Constants.LINE_SEPARATOR);
}
reader.close();
contents = buf.toString().toLowerCase();
@@ -197,8 +196,7 @@
attrName += ":";
int index1 = getContents().indexOf(attrName);
while (index1 != -1) {
- int index2 = getContents().indexOf(
- System.getProperty("line.separator"), index1);
+ int index2 = getContents().indexOf(Constants.LINE_SEPARATOR, index1);
String value;
if (index2 > (index1 + attrName.length())) {
value = getContents().substring(attrName.length() + index1,
--
Gitblit v1.10.0