| | |
| | | |
| | | |
| | | // Determine the appropriate server root for the Directory Server. First, |
| | | // do this by looking at an environment variable. If that isn't specified, |
| | | // then try to figure it out from the location of the configuration file. |
| | | String rootDirStr = System.getenv(ENV_VAR_INSTANCE_ROOT); |
| | | // do this by looking for a Java property. If that isn't specified, then |
| | | // look for an environment variable, and if all else fails then try to |
| | | // figure it out from the location of the configuration file. |
| | | String rootDirStr = System.getProperty(PROPERTY_SERVER_ROOT); |
| | | if (rootDirStr == null) |
| | | { |
| | | rootDirStr = System.getenv(ENV_VAR_INSTANCE_ROOT); |
| | | } |
| | | |
| | | if (rootDirStr != null) |
| | | { |
| | | try |