FinalBuilder 4 adds a new action which makes it easier to find text in either a file or a FinalBuilder variable. Some build processes need to search for error strings in files, or maybe certain text from the output of a version control system action. In the past this would be achieved by either using a file iterator with some script, or completely in VBScript/JScript. Our build process uses this method to search for error strings in the output of the help file generator we use. We also answer questions about how to search for a text string quite often, so we know this action is going to get a good workout!
Here's how we use the new action:
The Text Find Action can automatically search for a text string or a regular expression and cause the action to fail if the occurrences is less or more than a predefined amount.