예제 #1
0
파일: GoServer.java 프로젝트: RikTyer/gocd
  protected void startServer() throws Exception {
    server = configureServer();
    server.start();

    Throwable exceptionAtServerStart = server.webAppContext().getUnavailableException();
    if (exceptionAtServerStart != null) {
      server.stop();
      LOG.error("ERROR: Failed to start Go server.", exceptionAtServerStart);
      throw new RuntimeException("Failed to start Go server.", exceptionAtServerStart);
    }
  }
예제 #2
0
파일: GoServer.java 프로젝트: RikTyer/gocd
 public void stop() throws Exception {
   server.stop();
 }