| | |
| | | { |
| | | desc.setOpenDSVersion( |
| | | org.opends.server.util.DynamicConstants.FULL_VERSION_STRING); |
| | | desc.setInstallPath(Utilities.getServerRootDirectory()); |
| | | desc.setInstancePath(Utilities.getInstanceRootDirectory( |
| | | Utilities.getServerRootDirectory().getAbsolutePath())); |
| | | String installPath = Utilities.getInstallPathFromClasspath(); |
| | | desc.setInstallPath(installPath); |
| | | desc.setInstancePath(Utils.getInstancePathFromClasspath(installPath)); |
| | | boolean windowsServiceEnabled = false; |
| | | if (Utilities.isWindows()) |
| | | { |
| | |
| | | desc.setAuthenticated(false); |
| | | } |
| | | else if (!isLocal || |
| | | Utilities.isServerRunning( |
| | | Utilities.getInstanceRootDirectory( |
| | | desc.getInstallPath().getAbsolutePath()))) |
| | | Utilities.isServerRunning(new File(desc.getInstancePath()))) |
| | | { |
| | | desc.setStatus(ServerDescriptor.ServerStatus.STARTED); |
| | | |
| | |
| | | rCtx.getSystemInformation(), "installPath"); |
| | | if (installPath != null) |
| | | { |
| | | desc.setInstallPath(new File(installPath)); |
| | | desc.setInstallPath(installPath); |
| | | } |
| | | String instancePath = (String)Utilities.getFirstMonitoringValue( |
| | | rCtx.getSystemInformation(), "instancePath"); |
| | | if (instancePath != null) |
| | | { |
| | | desc.setInstancePath(new File(instancePath)); |
| | | desc.setInstancePath(instancePath); |
| | | } |
| | | } |
| | | } |
| | |
| | | else |
| | | { |
| | | // Compare host names and paths |
| | | File f1 = server.getInstancePath(); |
| | | File f2 = task.getServer().getInstancePath(); |
| | | String f1 = server.getInstancePath(); |
| | | String f2 = task.getServer().getInstancePath(); |
| | | |
| | | String host1 = server.getHostname(); |
| | | String host2 = task.getServer().getHostname(); |