Bug 47656

Summary: Documentation on server configuration should include note about ant-style variable substitution
Product: Tomcat 5 Reporter: Rodney <business2008>
Component: Webapps:DocumentationAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P2    
Version: 5.5.27   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Rodney 2009-08-06 14:37:42 UTC
The 3.3 documentation mentioned that ant-style variable substitution was available in the server.xml configuration.

The documentation for 5.5 (and 6.0) doesn't seem to mention that anywhere.  It should be included.  Something like:

Configuration attribute values may use variable substitution (aka dynamic variable values or system property variable values).

The syntax for doing so is ${varname}

Valid variable names come from any system properties (JVM Option) that are available at the time.  Values are only resolved once and not updated until the server is restarted.
Comment 1 Mark Thomas 2009-12-11 05:48:23 UTC
Thanks for the report. I have added some text to the docs for trunk 6.0.x and 5.5.x which will be included in 7.0.0 onwards, 6.0.21 onwards and 5.5.29 onwards.