resultsblock

The <resultsblock> element defines how the system processes the results of the command lines executed from the related <execute> element. The <resultsblock> element is only used within a <command> element. The <resultsblock> element can be nested to partition results.

The <resultsblock> element can have optional beginpattern and endpattern attributes that use regular expressions (Java regular expressions for Java engines in Build Forge 8.0, and Perl regular expressions for Perl engines in Build Forge 8.0 and all 7.1.x) to define a range of output lines to process. You can then process different ranges by using different <resultsblock> elements. The following pseudocode shows the structure of a <resultsblock> element.
<resultsblock startpattern="" endpattern="" >
        <match>
        <bom>
         <field/>
        </bom>
        <adduser/>
        <setenv/>
        <run/> (The <run> element can be used to run commands within other commands)
        </match>
        <setenv/>
      </resultsblock>
The following example shows how the <resultsblock>, <match>, and <bom> elements work together:
<resultsblock 
beginpattern="^Change (\d+) by (.*?)@(.*?) on (.*?) (.*?)$" 
endpattern="^Differences ...$">
        <match pattern="(?=^(?:(?!Differences ...).)*$).?">
        <bom category="Detail" section="descriptions">
        <field name="Description" text="$_"/>
        </bom>
        </match>
     </resultsblock>

Feedback