大多数适配器模板都将更改详细信息记录到 BOM 报告中。(diff 命令用于记录更改详细信息。)
下列步骤引用 ClearCaseByDate 模板中的元素,但可用于除去任何适配器模板的更改详细信息。
要除去 BOM 报告中的更改详细信息:
<run command="cc_diff" params="$VIEW $1 $2" server="$CCSERVER" dir="/" timeout="360"/>
<!-- The cc_diff command does a generic clearcase diff, logging the full output
of the diff in the BuildForge BOM -->
<command name="cc_diff">
<execute>
pushd \\view\$1 && cleartool diff -pred -diff_format "$2@@$3"
</execute>
<resultsblock>
<match pattern=".+">
<bom category="Source" section="diff">
<field name="diff" text="$_"/>
</bom>
</match>
<resultsblock/>
</command>
<section name="diff">
<field name="diff" title="Change Details"/>
</section>