Product Documentation

FairCom RTG V2 Update Guide

Previous Topic

Next Topic

<config filematch> attribute to specify file matching precedence algorithm

A new attribute has been added to the <config> element: <config filematch>. The value of <config filematch> determines which <file> rule takes precedence when more than one rule applies to a file.

  • Setting <config filematch="0"> results in the FairCom RTG configuration using the original algorithm to provide backward compatibility for existing FairCom RTG configuration files.
  • Setting <config filematch="1"> results in the FairCom RTG configuration using the new and simplified file matching algorithm.

The differences between the two algorithms are listed as follows:

  • In case of multiple wildcard matches: The rule with the most matching characters (name and dir combined) takes precedence. For example, file name "custmast" matches <file name="cust*"> before matching <file name="*ast">.
  • In case the combined name and dir lengths are equal: The order of appearance in the configuration file is used. For example, file name "custmast" matches whichever comes first in ctree.conf between <file name="cust*" dir="."> and <file name="*mast" dir= ".">.

TOCIndex