What are the components of a ruleList?
| Author: BitRock Support Date: October 30, 2007 09:33 Tags: |
Installation
Installbuilder Actions |
Each ruleList can contain one or more <compareText>, <fileTest>, <fileContentTest> or any other rule sections. <compareText> text comparison rules can contain three fields :
- text: The text to apply the logic comparison to; usually the value of an installer or environment variable.
- logic: One of equals, contains, does_not_contain or does_not_equal.
- value: The value that the text will be compared with.
<compareText>
<text>${server}</text>
<logic>equals</logic>
<value>Apache</value>
</compareText>
|
- path: The path to the file to test.
- condition: One of exists, not_exists, writable, not_writable, readable, not_readable, executable, not_executable, is_directory, is_not_directory, is_file, is_not_file, is_empty, is_not_empty.
<fileTest>
<path>/usr/bin/perl</path>
<condition>executable</condition>
</fileTest>
|
- path: The path to the file to test.
- logic: One of contains, does_not_contain
- text: The text to apply the logic comparison to, usually the value of an installer or environment variable.
<fileContentTest>
<path>/etc/group</path>
<logic>contains</logic>
<text>apache</text>
</fileContentTest>
|