[ You are here: XTF -> Deployment Guide -> XTF Base Directory ]

The XTF Base Directory (XTF_HOME)

The XTF base directory is critical to understanding where resources are located in your XTF installation. In general, the base directory is the top level of the XTF installation, and contains important sub-directories such as conf, style, and WEB-INF. Every component of XTF needs to locate this base directory to enable it to find configuration files, stylesheets, and data files.

In the case of the servlets, the servlet container (typically Tomcat or Resin) provides the base directory, and it's usually: servlet-directory/webapps/xtf/. This can be overridden in the servlet configuration by specifying a base-dir configuration parameter; how to do this depends on the particular servlet container.

The command-line tools such as textIndexer cannot rely on the servlet container. The way this is handled depends on whether you're running XTF on Unix or Windows: