tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arvind Srinivasan" <arvind.sriniva...@sun.com>
Subject [PATCH] - Make default deployment descriptor file location configurable
Date Thu, 28 Mar 2002 10:01:41 GMT
This is a patch for RFE# 7564. It allows one to specify/override the
location of the default deployment descriptor. Currently, this is hardcoded
to 'conf/web.xml' in o.a.c.startup.Constants.java

Products that embed the Catalina engine (using Embedded's API) may have a
different directory structure and this patch allows one to programmatically
specify the location of the default deployment descriptor rather than having
to change the value of o.a.c.startup.Constants.defaultWebXml.

e.g.
    StandardContext context = new StandardContext();
    ...
    ...
    ContextConfig config = new ContextConfig();
    config.setDefaultWebXml("/webserver1/config/default-web.xml");
    ((Lifecycle) context).addLifecycleListener(config);

Cheers,
 Arvind

Mime
View raw message