What are the components of a ruleList?

asked 12 Sep '11, 07:28

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%


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.

Example:

<compareText>
    <text>${server}</text>
    <logic>equals</logic>
    <value>Apache</value>
</compareText>

<fileTest> file testing rules contain two fields :

  • 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.

Example:

<fileTest>
    <path>/usr/bin/perl</path>
    <condition>executable</condition>
</fileTest>

<fileContentTest> file content testing rules contain three fields :

  • 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.

Example:

<fileContentTest>
    <path>/etc/group</path>
    <logic>contains</logic>
    <text>apache</text>
</fileContentTest>
link

answered 12 Sep '11, 07:33

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2

Asked: 12 Sep '11, 07:28

Seen: 1,232 times

Last updated: 12 Sep '11, 07:33