コード例 #1
0
ファイル: PathActionDelegate.java プロジェクト: qwop/dolphin
  /*
   * @see IActionDelegate#run(IAction)
   */
  public void run(IAction action) {
    final String tomcatDir = TomcatLauncherPlugin.getDefault().getTomcatDir();

    if (TomcatLauncherPlugin.checkTomcatSettingsAndWarn()) {
      // TomcatLauncherPlugin.log(TomcatLauncherPlugin.getResourceString("msg.start"));
      command(tomcatDir + File.separatorChar + "conf" + File.separatorChar + "server.xml");
    }
  }
コード例 #2
0
  /*
   * @see IActionDelegate#run(IAction)
   */
  public void run(IAction action) {
    if (TomcatLauncherPlugin.checkTomcatSettingsAndWarn()) {
      // TomcatLauncherPlugin.log(TomcatLauncherPlugin.getResourceString("msg.stop"));
      try {

        dumpJacoco();

        TomcatLauncherPlugin.getDefault().getTomcatBootstrap().stop();
        TomcatLauncherPlugin.log("tomcat stop");

      } catch (Exception ex) {
        String msg = TomcatLauncherPlugin.getResourceString("msg.stop.failed");
        TomcatLauncherPlugin.log(msg + "/n");
        TomcatLauncherPlugin.log(ex);
      }
    }
  }