pier 01/08/31 10:55:09
Modified: webapp/java WarpConfigurationHandler.java
Log:
<author name="craigmcc">
Enhance Catalina startup/shutdown processing to support a new (optional)
environment variable (CATALINA_BASE), and corresponding system property
(catalina.base). If not set, these values default to
corresponding values for CATALINA_HOME and catalina.home, respectively.
When you set CATALINA_BASE to point to a directory other than the one
pointed to by CATALINA_HOME, you are changing the *default* base from
which all references to files in the "conf", "logs", "webapps", and "work"
directories are resolved. This allows you to share the static portion of
a Tomcat 4 installation (read-only) among multiple uses of that
installation on the same server.
TODO: A pass through the docs to update them with this new information is
coming up shortly.
Submitted by: Too numerous to count :-)
</author>
Revision Changes Path
1.14 +1 -1
jakarta-tomcat-connectors/webapp/java/WarpConfigurationHandler.java
Index: WarpConfigurationHandler.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/webapp/java/WarpConfigurationHandler.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- WarpConfigurationHandler.java 2001/08/10 02:58:01 1.13
+++ WarpConfigurationHandler.java 2001/08/31 17:55:09 1.14
@@ -288,7 +288,7 @@
Deployer deployer=(Deployer)host;
File file=new File(host.getAppBase()+File.separator+applName);
if (!file.isAbsolute()) {
- file=new File(System.getProperty("catalina.home"),
+ file=new File(System.getProperty("catalina.base"),
host.getAppBase()+File.separator+applName);
}