It's all about the answers!

Ask a question

Required Content Precondition - details


Brad Debroni (61) | asked Jan 05 '11, 6:31 p.m.
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
  • Required text
  • Text to insert

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

2 answers



permanent link
Brad Debroni (61) | answered Jan 07 '11, 12:43 p.m.
Anyone have any information they can provide? Thanks!

permanent link
Evan Hughes (2.4k1318) | answered Jan 10 '11, 1:57 p.m.
JAZZ DEVELOPER
The file pattern a java style regular expression that matches on the file name. The file's path is ignored.

The required 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.

The text to insert is prepended to the file.

e

Your answer


Register or to post your answer.