tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13634] New: - Allowing system properties to be substituted in config-file
Date Tue, 15 Oct 2002 07:27:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13634>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13634

Allowing system properties to be substituted in config-file

           Summary: Allowing system properties to be substituted in config-
                    file
           Product: Tomcat 4
           Version: Unknown
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jesper.soderlund@smarttrust.com


I think that a really useful feature would be to enhance the config-file 
(server.xml) with the option to subsitute System-properties for attributes in 
the file. 

An example syntax would be:

<Logger path="${my.log.root.path}/trace" .. > 

which would extract the System.getProperty("my.log.root.path") and subsitute 
for the value in the attribute.

This would make it possible to modify the behavior of a catalina instance by 
passing additional commandline parameters, (mainly for path type attributes).

We're packaging tomcat as a part of our product and since the paths in the 
config-file are now absolut or relative to the CATALINA_BASE we have to make 
some config-file substiututions to allow our product to be installed in a user-
choosen location. I believe having this feature would greatly enhance the 
packagability of Tomcat.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message