JarEntry entry = null;
InputStream istream = null;
BufferedOutputStream ostream = null;
- File xml = new File
- (configBase(), file.substring(0, file.lastIndexOf(".")) + ".xml");
+ File xml;
+ if (copyXML) {
+ xml = new File(configBase(),
+ file.substring(0, file.lastIndexOf(".")) + ".xml");
+ } else {
+ xml = new File(appBase(),
+ file.substring(0, file.lastIndexOf(".")) +
+ "/META-INF/context.xml");
+ }
boolean xmlInWar = false;
if (deployXML && !xml.exists()) {
Long.valueOf(docBase.lastModified()));
addWatchedResources(deployedApp, docBase.getAbsolutePath(),
context);
+ if (deployXML && !copyXML && xmlInWar) {
+ deployedApp.redeployResources.put(xml.getAbsolutePath(),
+ Long.valueOf(xml.lastModified()));
+ }
} else {
addWatchedResources(deployedApp, null, context);
}
Provide a configuration option that lets the close method to be used for
a JNDI Resource to be defined by the user. (markt)
</add>
+ <fix>
+ Correctly track changes to context.xml files and trigger redeployment
+ when copyXML is set to false. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">