From 0bfa14ac56a7fe9007a43e0f758df35a31743778 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 08 Oct 2006 23:16:38 +0000
Subject: [PATCH] Update the LDAPCompare tool to replace references to fileURL for the assertion value to filePath, since the expected value is a path and not a URL.
---
opends/src/server/org/opends/server/tools/LDAPToolUtils.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/LDAPToolUtils.java b/opends/src/server/org/opends/server/tools/LDAPToolUtils.java
index 8fe7d27..d630f3d 100644
--- a/opends/src/server/org/opends/server/tools/LDAPToolUtils.java
+++ b/opends/src/server/org/opends/server/tools/LDAPToolUtils.java
@@ -132,17 +132,17 @@
/**
* Read the data from the specified file and return it in a byte array.
*
- * @param fileURL The URL to the file that should be read.
+ * @param filePath The path to the file that should be read.
*
* @return A byte array containing the contents of the requested file.
*/
- public static byte[] readBytesFromFile(String fileURL)
+ public static byte[] readBytesFromFile(String filePath)
{
byte[] val = null;
FileInputStream fis = null;
try
{
- File file = new File(fileURL);
+ File file = new File(filePath);
fis = new FileInputStream (file);
long length = file.length();
val = new byte[(int)length];
@@ -157,14 +157,14 @@
// Ensure all the bytes have been read in
if (offset < val.length)
{
- System.err.println("Could not completely read file "+fileURL);
+ System.err.println("Could not completely read file "+filePath);
return null;
}
return val;
} catch(IOException ie)
{
- System.err.println("Could not completely read file "+fileURL);
+ System.err.println("Could not completely read file "+filePath);
System.err.println(ie.getMessage());
return null;
} finally
--
Gitblit v1.10.0