Only ignore docBase it it really is a subdir of appBase
Patch provided by juergen
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@675650
13f79535-47bb-0310-9956-
ffa450edef68
docBase = new File(appBase(), context.getDocBase());
}
// If external docBase, register .xml as redeploy first
- if (!docBase.getCanonicalPath().startsWith(appBase().getAbsolutePath())) {
+ if (!docBase.getCanonicalPath().startsWith(
+ appBase().getAbsolutePath() + File.separator)) {
isExternal = true;
deployedApp.redeployResources.put
(contextXml.getAbsolutePath(), new Long(contextXml.lastModified()));