| | |
| | | import java.io.OutputStream; |
| | | import java.io.PrintStream; |
| | | |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.NullOutputStream; |
| | | import org.opends.server.util.SetupUtils; |
| | |
| | | */ |
| | | public static int enableService(PrintStream out, PrintStream err) |
| | | { |
| | | return enableService(out, err, INFO_WINDOWS_SERVICE_NAME.get().toString(), |
| | | INFO_WINDOWS_SERVICE_DESCRIPTION.get(getServerRoot()).toString()); |
| | | Message serviceName = Utils.getCustomizedObject( |
| | | "INFO_WINDOWS_SERVICE_NAME", |
| | | INFO_WINDOWS_SERVICE_NAME.get(), Message.class); |
| | | Message serviceDescription = Utils.getCustomizedObject( |
| | | "INFO_WINDOWS_SERVICE_DESCRIPTION", |
| | | INFO_WINDOWS_SERVICE_DESCRIPTION.get(getServerRoot()), Message.class); |
| | | return enableService(out, err, serviceName.toString(), |
| | | serviceDescription.toString()); |
| | | } |
| | | |
| | | /** |