+

Search Tips   |   Advanced Search

Replacement variables in XML configuration interface script files

XML script files that were created by an XML configuration interface export or that can be imported by the XML configuration interface can contain URLs to portal files. These URLs reference files that are in HCL WebSphere Portal server directories. Depending on the installation directory of the HCL WebSphere Portal installation, these file locations can differ. We can avoid the dependency on the file location by using variables. For example, the web application of the portal login module contains the following XML element:

On a Linux installation of HCL WebSphere Portal, this URL might be interpreted as follows:

On other HCL WebSphere Portal installations, the login.war file can be in a different directory.

As the XML configuration interface uses different values for the variable replacement, the XML input file is independent of the specific HCL WebSphere Portal installation directories.The following table shows the available variables and provides examples of the replacement values they might have on a Linux installation of HCL WebSphere Portal:

Variable for HCL WebSphere Portal installation directory Example replacement value
$app_install_root$ /opt/WebSphere/wp_profile/installedApps
$archive_root$ /opt/WebSphere/wp_profile/PortalServer/deployed/archive
$predeployed_root$ /opt/WebSphere/wp_profile/installedApps/wpsbvt
$profile_install_root$ /opt/WebSphere/wp_profile/installedApps
$server_root$ /opt/WebSphere/PortalServer
$user_install_root$ /opt/WebSphere/wp_profile
$wp_profile_root$ /opt/WebSphere/wp_profile

Parent topic: XML configuration reference