/* * @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"); } }
/* * @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); } } }