394395396397398399400401402403404
} catch(Exception ex){ ClickPlugin.log(ex); } finally { if (artifactEdit != null) { // save and dispose artifactEdit.saveIfNecessary(monitor); artifactEdit.dispose(); } } }
126127128129130131132133134135136
// remove servlet removeClickServlet(webApp, servlet); } finally { if (artifactEdit != null) { artifactEdit.saveIfNecessary(monitor); artifactEdit.dispose(); } } }
193194195196197198199200201202203
webApp.getServletMappings().remove(servletMapping); break; } } artifactEdit.saveIfNecessary(monitor); artifactEdit.dispose(); } finally { monitor.done();
490491492493494495496497498499500
mapping.setServlet(servlet); mapping.setName(servlet.getServletName()); mapping.setUrlPattern("/" + serviceUri); webApp.getServletMappings().add(mapping); artifactEdit.saveIfNecessary(monitor); artifactEdit.dispose(); } finally { monitor.done();
462463464465466467468469470471472
mapping.setServlet(servlet); mapping.setName(servlet.getServletName()); mapping.setUrlPattern("/" + serviceUri); webApp.getServletMappings().add(mapping); artifactEdit.saveIfNecessary(monitor); artifactEdit.dispose(); } finally {
461462463464465466467468469470471
110111112113114115116117118119120
mapping.setServlet( servlet ); mapping.setUrlPattern( urlPattern ); root.getServletMappings().add( mapping ); artifact.saveIfNecessary( null ); } finally { artifact.dispose(); }
190191192193194195196197198199200
servlets.remove(servlet); webApp.getServletMappings().remove(servletMapping); } } artifactEdit.saveIfNecessary(monitor); artifactEdit.dispose(); } finally { monitor.done();