tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r991965 - in /tomcat/trunk/java/org/apache/catalina: core/StandardEngine.java startup/ContextConfig.java
Date Thu, 02 Sep 2010 15:02:52 GMT
Author: rjung
Date: Thu Sep  2 15:02:52 2010
New Revision: 991965

URL: http://svn.apache.org/viewvc?rev=991965&view=rev
Log:
Followup to r991959.

Forgot the two classes.

Modified:
    tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java
    tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java?rev=991965&r1=991964&r2=991965&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java Thu Sep  2 15:02:52 2010
@@ -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 Cont
 
     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;
     }

Modified: tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java?rev=991965&r1=991964&r2=991965&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java Thu Sep  2 15:02:52 2010
@@ -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;
         }



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


Mime
View raw message