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;
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;
}
if( engineC instanceof StandardEngine ) {
return ((StandardEngine)engineC).getBaseDir();
}
- return System.getProperty("catalina.base");
+ return System.getProperty(Globals.CATALINA_BASE_PROP);
}
canonicalAppBase = canonicalAppBase.getCanonicalFile();
} else {
canonicalAppBase =
- new File(System.getProperty("catalina.base"), appBase)
+ new File(System.getProperty(Globals.CATALINA_BASE_PROP), appBase)
.getCanonicalFile();
}
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);
}
*/
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;
}