The <normalize> configuration option normalizes file paths passed to FairCom RTG. This option is global-only, and can only be set only as a child of <config>. It is invalid if specified as child of <*instance> or <file>. When this option is used, the file path gets normalized before any file configuration matching.
The <normalize> option may contain the following sub-options:
<sep>
Specifies the path separator, such as a forward slash (/) or backslash (\).
<drive>
Specifies a drive letter to be used if the path to be normalized does not include a drive letter.
If a drive letter is already included in the path, it is not replaced with the one specified by <drive>. Also, <drive> applies only to full file paths, not relative ones. The following attributes can modify these behaviors:
<relative>
Specifies if the relative file paths will be normalized to always begin with a "./" or ".\". Defaults to "no", meaning nothing is automatically added to the start of relative file paths.
Examples
The following <normalize> section replaces all path separators with a backslash (\) and prefixes all the file paths with a C drive unless the path to be normalized already includes a drive letter:
<normalize><sep>\</sep><drive>C</drive></normalize>
If the file path to be normalized already has a drive it is not changed by default. It is possible to force the drive to be changed to the one specified by setting the force= attribute to yes. For example:
<normalize><drive force="y">C</drive></normalize>
It is also possible to remove an existing drive by specifying an empty drive. For example:
<normalize><drive></drive></normalize>