context.setPath(cn.getPath());
context.setWebappVersion(cn.getVersion());
context.setDocBase(file);
host.addChild(context);
deployedApp.redeployResources.put(dir.getAbsolutePath(),
<BUG>new Long(dir.lastModified()));
</BUG>
if (xmlCopy != null) {
<BUG>deployedApp.redeployResources.put

(xmlCopy.getAbsolutePath(), new Long(xmlCopy.lastModified()));
}</BUG>
addWatchedResources(deployedApp, dir.getAbsolutePath(), context);

context.setPath(cn.getPath());
context.setWebappVersion(cn.getVersion());
context.setDocBase(file);
host.addChild(context);
if (unpackWARs && (context.getDocBase() != null)) {
File docBase = new File(appBase(), cn.getBaseName());
deployedApp.redeployResources.put(docBase.getAbsolutePath(),
Long.valueOf(docBase.lastModified()));
addWatchedResources(deployedApp, docBase.getAbsolutePath(),
context);
} else {
addWatchedResources(deployedApp, null, context);
}
