Project: Tomcat
Bug 51136 Allow to set the context name through Tomcat's embeded class before adding it to the host
Reported: 2011-04-29 16:18:31 | Status: resolved fixed

org.apache.catalina.startup.Tomcat creates contexts and add them to the host directly. It would be nice if we could set the name of the context before adding it to the host. I'm including a patch that overloads the methods "addWebapp" and "addContext" to take that name as a parameter.

Files changed in fix:
java/org/apache/catalina/startup/Tomcat.java