| | |
| | | import org.opends.guitools.controlpanel.datamodel.ConnectionProtocolPolicy; |
| | | import org.opends.guitools.controlpanel.datamodel.ControlPanelInfo; |
| | | import org.opends.quicksetup.*; |
| | | import org.opends.quicksetup.ReturnCode; |
| | | import org.opends.quicksetup.event.ProgressUpdateEvent; |
| | | import org.opends.quicksetup.event.ProgressUpdateListener; |
| | | import org.opends.quicksetup.util.PlainTextProgressMessageFormatter; |
| | |
| | | import org.opends.server.tools.JavaPropertiesTool.ErrorReturnCode; |
| | | import org.opends.server.tools.dsconfig.LDAPManagementContextFactory; |
| | | import org.opends.server.util.StaticUtils; |
| | | |
| | | import com.forgerock.opendj.cli.ConsoleApplication; |
| | | |
| | | import org.opends.server.util.cli.LDAPConnectionConsoleInteraction; |
| | | |
| | | import com.forgerock.opendj.cli.ArgumentException; |
| | | import com.forgerock.opendj.cli.ClientException; |
| | | import com.forgerock.opendj.cli.ConsoleApplication; |
| | | import com.forgerock.opendj.cli.Menu; |
| | | import com.forgerock.opendj.cli.MenuBuilder; |
| | | import com.forgerock.opendj.cli.MenuResult; |
| | |
| | | import static org.forgerock.util.Utils.*; |
| | | import static org.opends.messages.AdminToolMessages.*; |
| | | import static org.opends.messages.QuickSetupMessages.*; |
| | | import static com.forgerock.opendj.cli.Utils.CONFIRMATION_MAX_TRIES; |
| | | import static com.forgerock.opendj.cli.Utils.*; |
| | | import static com.forgerock.opendj.cli.ArgumentConstants.*; |
| | | |
| | | /** |
| | |
| | | return s; |
| | | } |
| | | |
| | | private boolean startServer(boolean supressOutput) |
| | | private boolean startServer(boolean suppressOutput) |
| | | { |
| | | logger.info(LocalizableMessage.raw("startServer, supressOutput: "+supressOutput)); |
| | | logger.info(LocalizableMessage.raw("startServer, suppressOutput: " + suppressOutput)); |
| | | boolean serverStarted = false; |
| | | Application application = new Application() |
| | | { |
| | |
| | | }; |
| | | application.setProgressMessageFormatter( |
| | | new PlainTextProgressMessageFormatter()); |
| | | if (!supressOutput) |
| | | if (!suppressOutput) |
| | | { |
| | | application.addProgressUpdateListener( |
| | | new ProgressUpdateListener() { |
| | |
| | | Installation.getLocal()); |
| | | try |
| | | { |
| | | if (!supressOutput) |
| | | if (!suppressOutput) |
| | | { |
| | | println(); |
| | | } |
| | | controller.startServer(supressOutput); |
| | | if (!supressOutput) |
| | | controller.startServer(suppressOutput); |
| | | if (!suppressOutput) |
| | | { |
| | | println(); |
| | | } |
| | |
| | | catch (ApplicationException ae) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("ApplicationException: "+ae, ae)); |
| | | if (!supressOutput) |
| | | if (!suppressOutput) |
| | | { |
| | | printErrorMessage(ae.getMessageObject()); |
| | | } |