Writes the accumulated servlet declarations and mappings to the web.xml output, then closes the writer.
()
| 1707 | * then closes the writer. |
| 1708 | */ |
| 1709 | protected void completeWebXml() { |
| 1710 | if (mapout != null) { |
| 1711 | try { |
| 1712 | servletout.writeTo(mapout); |
| 1713 | mappingout.writeTo(mapout); |
| 1714 | if (webxmlLevel >= ALL_WEBXML) { |
| 1715 | mapout.write(Localizer.getMessage("jspc.webxml.footer")); |
| 1716 | } else if (webxmlLevel >= FRG_WEBXML) { |
| 1717 | mapout.write(Localizer.getMessage("jspc.webfrg.footer")); |
| 1718 | } else if ((webxmlLevel >= INC_WEBXML) && !addWebXmlMappings) { |
| 1719 | mapout.write(Localizer.getMessage("jspc.webinc.footer")); |
| 1720 | } |
| 1721 | mapout.close(); |
| 1722 | } catch (IOException ignore) { |
| 1723 | // Nothing to do if it fails since we are done with it. |
| 1724 | } |
| 1725 | } |
| 1726 | } |
| 1727 | |
| 1728 | |
| 1729 | /** |
no test coverage detected