| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.quicksetup; |
| | |
| | | import java.io.File; |
| | | import java.io.FileReader; |
| | | import java.io.IOException; |
| | | import org.opends.server.core.DirectoryServer; |
| | | |
| | | /** |
| | | * Represents information about the license file. |
| | |
| | | */ |
| | | static private String getName() |
| | | { |
| | | String installRootFromSystem = System.getProperty("INSTALL_ROOT"); |
| | | String installRootFromSystem = DirectoryServer.getServerRoot(); |
| | | |
| | | if (installRootFromSystem == null) { |
| | | installRootFromSystem = System.getenv("INSTALL_ROOT"); |
| | |
| | | installRootFromSystem = ""; |
| | | } |
| | | |
| | | return installRootFromSystem + "/Legal/license_to_accept.txt"; |
| | | return installRootFromSystem + |
| | | File.pathSeparator + |
| | | "Legal" + |
| | | File.pathSeparator + |
| | | "license_to_accept.txt"; |
| | | } |
| | | |
| | | /** |