Manuals >Installation and Customization Guide >Customizing the IC-CAP Environment Print version of this Book (PDF file) |
![]() ![]() |
||||||||
|
|||||||||
Configuration File FormatConfiguration variables are defined using standard assignment syntax: where variable is the configuration variable name and value is the string that is assigned to the variable. This value can be a directory, search path, numeric value, or other value defined by the program. For example, the location of the preferences could be set by: where $ICCAP_ROOT is an environment variable representing the complete installation path. Note the following details about file format, illustrated in the accompanying example:
Example
References to environment variables $name and IC-CAP configuration variables %name can appear in any order; they are resolved inside each IC-CAP program. A reference to an environment variable or configuration variable name may be enclosed in braces { } when their use is not followed by a punctuation character. The braces are not included in an expanded value. Configuration Variable DescriptionIC-CAP configuration variables are identified by a case-insensitive string of 1 to 31 alphanumeric characters (an underscore is allowed). Variables that are longer than 31 characters are automatically truncated when the configuration file is read. When a variable is set from a configuration file, the line is parsed and variable is set to the value. A configuration variable can contain a reference. A reference may be enclosed in braces and the text is preceded by either a $ or % (see Table 11). For example, assigns the string $ICCAP_ROOT/de/defaults to the configuration variable PREFERENCES_DIR, and $ICCAP_ROOT is defined in a start-up file.
Most IC-CAP configuration variables are assigned a single value. This text can represent a number, string, file, or path as in the following examples.
Note that when the file is outside of a project configuration, it is necessary to include the full path with the filename to ensure that the file is found. Some IC-CAP configuration variables accept a path assignment. A path is a list of one or more directories, where each directory is separated by a colon. These variables can represent search paths or load paths, depending on the variable and the program. Ordering of the list is significant. When treated as a search path, the list is only scanned until the item needed is found. For loading, the entire list is sequentially examined with the last directory usually taking precedence. The documentation for each specific variable indicates the type of value allowed. Some variables may have a limited type, such as a range of numbers or list of specific strings. Configuration Variable ExpansionConfiguration variable expansion refers to the process of replacing all references and variables that make up the configuration variable with their text equivalents until the complete value of the configuration variable is known. (There are no limits to the levels of referencing you can use.) Note that this expansion is done internally by the program; the file that contains the variable assignments is not modified. For example, assume that the system environment variable ICCAP_ROOT is set to opt/iccap/mysite and the following two lines exist in a configuration file. After expansion within IC-CAP: As in the system environment, you may redefine and add your own IC-CAP variables in any IC-CAP configuration files to help manage system- and user-specific configurations. |
|||||||||
|
|||||||||
![]() ![]() |