| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2007-2008 Sun Microsystems, Inc. |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | // Use this instead of Installation.getLocal() because making that call |
| | | // starts a new JVM and the command-line becomes less responsive. |
| | | String installPath = Utils.getInstallPathFromClasspath(); |
| | | String root = Utils.getInstancePathFromClasspath(installPath); |
| | | String root = Utils.getInstancePathFromInstallPath(installPath); |
| | | if (root != null) |
| | | { |
| | | String libDir = Utils.getPath(root, Installation.LIBRARIES_PATH_RELATIVE); |
| | |
| | | // Use this instead of Installation.getLocal() because making that call |
| | | // starts a new JVM and the command-line becomes less responsive. |
| | | String installPath = Utils.getInstallPathFromClasspath(); |
| | | String root = Utils.getInstancePathFromClasspath(installPath); |
| | | String root = Utils.getInstancePathFromInstallPath(installPath); |
| | | if (root != null) |
| | | { |
| | | String configDir = Utils.getPath(root, Installation.CONFIG_PATH_RELATIVE); |