Required Content Precondition - details
I've searched through the forums and am able to pick up hints and pieces of information from other posts, but nothing that is detailed. What I am looking for is a description of how the required content precondition works.
As far as I can tell, there are 3 possible configuration values for this:
File pattern
Is this a regular expression or a string? If a regular expression, does it match any subset of the file name or must it match it in its entirety?
Required text
Is this a regular expression or a string? If a regular expression, does it need to match an entire line in a file or just any subset of a line? Can you make it match across multiple lines?
Text to insert
How is this used? Where does the text get inserted? Is there any sort of pattern matching going on so that the text that gets inserted can refer to text that was matched in the file?
Answers to any or all of the above questions would be very helpful! Thanks in advance.
Brad
As far as I can tell, there are 3 possible configuration values for this:
- File pattern
- Required text
- Text to insert
Is this a regular expression or a string? If a regular expression, does it match any subset of the file name or must it match it in its entirety?
Is this a regular expression or a string? If a regular expression, does it need to match an entire line in a file or just any subset of a line? Can you make it match across multiple lines?
How is this used? Where does the text get inserted? Is there any sort of pattern matching going on so that the text that gets inserted can refer to text that was matched in the file?
Answers to any or all of the above questions would be very helpful! Thanks in advance.
Brad
2 answers
The file pattern a java style regular expression that matches on the file name. The file's path is ignored.
Therequired text is a string literal that matches against the exact content of the file. The literal may match across lines, so long as you have the appropriate line delimiter included as part of the string. I believe that we use '\n' as the server-side line delimiter for text files.
Thetext to insert is prepended to the file.
e
The
The
e