/tomcat-serverxml-tool

A simple tool to add/remove contexts from the server.xml file of a Tomcat server

Primary LanguageXSLTGNU General Public License v2.0GPL-2.0

Archived project

This tool has been deprecated, instead Tomcat now uses xsltproc to perform all the changes in server.xml file. If you want to resume work, please contact us at GitHub Discussions or the devel channel at Gitter

=====

A simple tool to add/remove tags and elements from/to the server.xml file of a Tomcat server.

Call tomcat-serverxml-tool.sh without arguments for help

Example

./serverxml-tool.sh add-context.xslt docBase=/usr/share/tomcat/tomcat-webapps/host-manager path=/host-manager contextXml=/usr/share/tomcat/tomcat-webapps/host-manager/META-INF/context.xml

where:

  • add-context.xslt is an xslt file in src/com/suse/tcserverxml/
  • docBase, path and contextXml are the parameters in add-context.xslt