Followup to r991959.
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Sep 2010 15:02:52 +0000 (15:02 +0000)
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Sep 2010 15:02:52 +0000 (15:02 +0000)
Forgot the two classes.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@991965 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardEngine.java
java/org/apache/catalina/startup/ContextConfig.java

index a463f44..0c53865 100644 (file)
@@ -22,6 +22,7 @@ import org.apache.catalina.AccessLog;
 import org.apache.catalina.Container;
 import org.apache.catalina.Context;
 import org.apache.catalina.Engine;
+import org.apache.catalina.Globals;
 import org.apache.catalina.Host;
 import org.apache.catalina.LifecycleException;
 import org.apache.catalina.Realm;
@@ -198,10 +199,10 @@ public class StandardEngine extends ContainerBase implements Engine {
 
     public String getBaseDir() {
         if( baseDir==null ) {
-            baseDir=System.getProperty("catalina.base");
+            baseDir=System.getProperty(Globals.CATALINA_BASE_PROP);
         }
         if( baseDir==null ) {
-            baseDir=System.getProperty("catalina.home");
+            baseDir=System.getProperty(Globals.CATALINA_HOME_PROP);
         }
         return baseDir;
     }
index 7949751..f2c9504 100644 (file)
@@ -530,7 +530,7 @@ public class ContextConfig
         if( engineC instanceof StandardEngine ) {
             return ((StandardEngine)engineC).getBaseDir();
         }
-        return System.getProperty("catalina.base");
+        return System.getProperty(Globals.CATALINA_BASE_PROP);
     }
 
     
@@ -671,7 +671,7 @@ public class ContextConfig
             canonicalAppBase = canonicalAppBase.getCanonicalFile();
         } else {
             canonicalAppBase = 
-                new File(System.getProperty("catalina.base"), appBase)
+                new File(System.getProperty(Globals.CATALINA_BASE_PROP), appBase)
                 .getCanonicalFile();
         }
 
@@ -778,7 +778,7 @@ public class ContextConfig
             if (!docBaseFile.isAbsolute()) {
                 File file = new File(appBase);
                 if (!file.isAbsolute()) {
-                    file = new File(System.getProperty("catalina.base"), appBase);
+                    file = new File(System.getProperty(Globals.CATALINA_BASE_PROP), appBase);
                 }
                 docBaseFile = new File(file, docBase);
             }
@@ -1145,7 +1145,7 @@ public class ContextConfig
      */
     protected File getConfigBase() {
         File configBase = 
-            new File(System.getProperty("catalina.base"), "conf");
+            new File(System.getProperty(Globals.CATALINA_BASE_PROP), "conf");
         if (!configBase.exists()) {
             return null;
         }