org.apache.catalina.startup.Bootstrap.getCatalinaBase()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中org.apache.catalina.startup.Bootstrap.getCatalinaBase()方法的一些代码示例,展示了Bootstrap.getCatalinaBase()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bootstrap.getCatalinaBase()方法的具体详情如下:
包路径:org.apache.catalina.startup.Bootstrap
类名称:Bootstrap
方法名:getCatalinaBase

Bootstrap.getCatalinaBase介绍

[英]Obtain the name of the configured base (instance) directory. Note that home and base may be the same (and are by default). If this is not set the value returned by #getCatalinaHome() will be used.
[中]获取已配置的基本(实例)目录的名称。请注意,home和base可能相同(默认情况下是相同的)。如果未设置此值,将使用#getCatalinaHome()返回的值。

代码示例

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Return a File object representing our configuration file.
 */
protected File configFile() {
  File file = new File(configFile);
  if (!file.isAbsolute()) {
    file = new File(Bootstrap.getCatalinaBase(), configFile);
  }
  return (file);
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

/**
 * Return a File object representing our configuration file.
 * @return the main configuration file
 */
protected File configFile() {
  File file = new File(configFile);
  if (!file.isAbsolute()) {
    file = new File(Bootstrap.getCatalinaBase(), configFile);
  }
  return file;
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Return a File object representing our configuration file.
 * @return the main configuration file
 */
protected File configFile() {
  File file = new File(configFile);
  if (!file.isAbsolute()) {
    file = new File(Bootstrap.getCatalinaBase(), configFile);
  }
  return file;
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  // Kerberos configuration file location
  String krb5Conf = System.getProperty(Constants.KRB5_CONF_PROPERTY);
  if (krb5Conf == null) {
    // System property not set, use the Tomcat default
    File krb5ConfFile = new File(Bootstrap.getCatalinaBase(),
        Constants.DEFAULT_KRB5_CONF);
    System.setProperty(Constants.KRB5_CONF_PROPERTY,
        krb5ConfFile.getAbsolutePath());
  }
  // JAAS configuration file location
  String jaasConf = System.getProperty(Constants.JAAS_CONF_PROPERTY);
  if (jaasConf == null) {
    // System property not set, use the Tomcat default
    File jaasConfFile = new File(Bootstrap.getCatalinaBase(),
        Constants.DEFAULT_JAAS_CONF);
    System.setProperty(Constants.JAAS_CONF_PROPERTY,
        jaasConfFile.getAbsolutePath());
  }
  
  // This property must be false for SPNEGO to work
  System.setProperty(Constants.USE_SUBJECT_CREDS_ONLY_PROPERTY, "false");
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  // Kerberos configuration file location
  String krb5Conf = System.getProperty(Constants.KRB5_CONF_PROPERTY);
  if (krb5Conf == null) {
    // System property not set, use the Tomcat default
    File krb5ConfFile = new File(Bootstrap.getCatalinaBase(),
        Constants.DEFAULT_KRB5_CONF);
    System.setProperty(Constants.KRB5_CONF_PROPERTY,
        krb5ConfFile.getAbsolutePath());
  }
  // JAAS configuration file location
  String jaasConf = System.getProperty(Constants.JAAS_CONF_PROPERTY);
  if (jaasConf == null) {
    // System property not set, use the Tomcat default
    File jaasConfFile = new File(Bootstrap.getCatalinaBase(),
        Constants.DEFAULT_JAAS_CONF);
    System.setProperty(Constants.JAAS_CONF_PROPERTY,
        jaasConfFile.getAbsolutePath());
  }
  
  // This property must be false for SPNEGO to work
  System.setProperty(Constants.USE_SUBJECT_CREDS_ONLY_PROPERTY, "false");
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

replacement = getCatalinaHome();
} else if (Globals.CATALINA_BASE_PROP.equals(propName)) {
  replacement = getCatalinaBase();
} else {
  replacement = System.getProperty(propName);

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

replacement = getCatalinaHome();
} else if (Globals.CATALINA_BASE_PROP.equals(propName)) {
  replacement = getCatalinaBase();
} else {
  replacement = System.getProperty(propName);

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

replacement = getCatalinaHome();
} else if (Globals.CATALINA_BASE_PROP.equals(propName)) {
  replacement = getCatalinaBase();
} else {
  replacement = System.getProperty(propName);

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

replacement = getCatalinaHome();
} else if (Globals.CATALINA_BASE_PROP.equals(propName)) {
  replacement = getCatalinaBase();
} else {
  replacement = System.getProperty(propName);

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

File base = new File (Bootstrap.getCatalinaBase());
base = base.getCanonicalFile();
File defaultValue = new File(base, "lib");

代码示例来源:origin: codefollower/Tomcat-Research

replacement = getCatalinaHome();
} else if (Globals.CATALINA_BASE_PROP.equals(propName)) {
  replacement = getCatalinaBase();
} else {
  replacement = System.getProperty(propName);

代码示例来源:origin: codefollower/Tomcat-Research

File base = new File (Bootstrap.getCatalinaBase());
base = base.getCanonicalFile();
File defaultValue = new File(base, "lib");

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

File base = new File (Bootstrap.getCatalinaBase());
base = base.getCanonicalFile();
File defaultValue = new File(base, "lib");

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

File base = new File (Bootstrap.getCatalinaBase());
base = base.getCanonicalFile();
File defaultValue = new File(base, "lib");

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

File base = new File (Bootstrap.getCatalinaBase());
base = base.getCanonicalFile();
File defaultValue = new File(base, "lib");

代码示例来源:origin: org.glassfish.main.web/web-core

+ repository.substring(CATALINA_HOME_TOKEN.length());
} else if (repository.startsWith(CATALINA_BASE_TOKEN)) {
  repository = getCatalinaBase() 
    + repository.substring(CATALINA_BASE_TOKEN.length());

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

replace=true;
if (i>0) {
repository = repository.substring(0,i) + getCatalinaBase()
  + repository.substring(i+CATALINA_BASE_TOKEN.length());
} else {
  repository = getCatalinaBase()
    + repository.substring(CATALINA_BASE_TOKEN.length());

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

File home = new File(Bootstrap.getCatalinaBase());
File conf = new File(home, "conf");
File propsFile = new File(conf, fileName);

代码示例来源:origin: codefollower/Tomcat-Research

try {
  File home = new File(Bootstrap.getCatalinaBase());
  File conf = new File(home, "conf");
  File propsFile = new File(conf, "catalina.properties");

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

File home = new File(Bootstrap.getCatalinaBase());
File conf = new File(home, "conf");
File propsFile = new File(conf, fileName);

相关文章