The attached patch adds a deployIgnorePaths attribute to StandardHost as I discussed with markt at ApacheConNA. The attribute is a comma-separated list of regular expressions that will exclude files or directories under appBase from autoDepoy and deployOnStartup. The host docs have been updated, and JMX get and set have been tested. Why? Here are a couple of use cases that this attribute can fix: - CATALINA_BASE configuration is kept under version control. For example, I keep all of my configuration in subversion. This includes appBase which has svn:externals to pull in the application code. So, appBase/.svn gets deployed. - A context defined in server.xml but living in appBase will currently get double-deployed. The recommendation is to move the app outside of appBase, but this attribute would allow it to live there with the instance's other apps.
Created attachment 26251 [details] deployIgnorePaths v1
Created attachment 26258 [details] deployIgnorePaths-tc6 v1 ...and a backport for TC6.
Fixed in 7.0.x and included in 7.0.6 Proposed for 6.0.x I used a slightly different patch but it was heavily based on your work. Thanks.
Fixed in 6.0.x and will be included in 6.0.31 onwards.