On 03/03/2015 19:14, Christopher Schultz wrote: > Chuck, > > On 3/3/15 1:20 PM, Caldarale, Charles R wrote: >>> From: Mark Thomas [mailto:ma...@apache.org] >>> Subject: Re: svn commit: r1663715 - in >>> /tomcat/trunk/java/org/apache/catalina/startup: >>> ExpandWar.java HostConfig.java LocalStrings.properties >> >>> A bigger issue is anything writing files into the docBase (e.g. some people >>> write >>> logs here despite it being a bad idea) is going to change the last modified >>> time >>> of the directory. As much as I like the simplicity of this approach, I >>> think an >>> alternative is required. >> >> As Konstantin noted, the timestamp on a directory is rather ephemeral, >> especially on Windows or NAS boxes. >> >> Can you simply record the deployment occurrence by writing a file with some >> appropriately Tomcat-specific name into the chosen deployment directory and >> set the timestamp on that file to match the .war? > > Like touching the timestamp of the context.xml file?
That can be modified by the user. > Or maybe META-INF/context.xml.stamp or whatever. I like that idea. I was thinking about the work directory but having it inside the directory of the expanded WAR simplifies undeployment. I'll probably tweak the file name but I do like the general idea. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org