Summary: | Align manager.xml template file in Host-Manager with context.xml of real Manager web application. | ||
---|---|---|---|
Product: | Tomcat 10 | Reporter: | Konstantin Kolinko <knst.kolinko> |
Component: | Manager | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 10.0.0-M9 | ||
Target Milestone: | ------ | ||
Hardware: | PC | ||
OS: | All |
Description
Konstantin Kolinko
2020-10-10 16:18:25 UTC
Would it make sense to copy webapps/manager/META-INF/context.xml to webapps/host-manager/manager.xml as part of the build script (i.e. in build.xml)? (In reply to Igal Sapir from comment #1) > Would it make sense to copy webapps/manager/META-INF/context.xml to > webapps/host-manager/manager.xml as part of the build script (i.e. in > build.xml)? That is a good idea, but note the differences: - An attribute docBase="${catalina.home}/webapps/manager" - A comment at the top. Both can be inserted while copying. https://ant.apache.org/manual-1.9.x/Types/filterchain.html#replaceregex https://ant.apache.org/manual-1.9.x/Tasks/copy.html I wonder whether there can be a better name for this file, to clarify its purpose. E.g. "manager-template.xml". Though that is a separate issue. Please see https://github.com/apache/tomcat/commit/04c7bf00144e38c7b1128e4bb5fed310a1ccfec8 I like the idea of renaming to "manager-template.xml"m as well as your answer to my question, but only saw your comment now. I'd be happy to make changes as needed. Ported to 9.0.x, 8.5.x, and 7.0.x |