From 03b30ea97b56c76514c31b7460e2b3c0594f859a Mon Sep 17 00:00:00 2001
From: fguigues <fguigues@localhost>
Date: Wed, 28 Jan 2009 07:38:52 +0000
Subject: [PATCH] Fix file sepator in the licenfile Update the classpath wit hadditional resources
---
opends/src/quicksetup/org/opends/quicksetup/LicenseFile.java | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/LicenseFile.java b/opends/src/quicksetup/org/opends/quicksetup/LicenseFile.java
index cbb388a..0938c62 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/LicenseFile.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/LicenseFile.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2006-2008 Sun Microsystems, Inc.
+ * Copyright 2006-2009 Sun Microsystems, Inc.
*/
package org.opends.quicksetup;
@@ -30,6 +30,7 @@
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
+import org.opends.server.core.DirectoryServer;
/**
* Represents information about the license file.
@@ -52,7 +53,7 @@
*/
static private String getName()
{
- String installRootFromSystem = System.getProperty("INSTALL_ROOT");
+ String installRootFromSystem = DirectoryServer.getServerRoot();
if (installRootFromSystem == null) {
installRootFromSystem = System.getenv("INSTALL_ROOT");
@@ -62,7 +63,11 @@
installRootFromSystem = "";
}
- return installRootFromSystem + "/Legal/license_to_accept.txt";
+ return installRootFromSystem +
+ File.pathSeparator +
+ "Legal" +
+ File.pathSeparator +
+ "license_to_accept.txt";
}
/**
--
Gitblit v1.10.0