範例:移除 BOM 報告中的變更詳細資料

大部分的配接器範本都會將變更詳細資料記錄到 BOM 報告中。(diff 指令即用來記錄變更詳細資料。)

下列步驟會參照 ClearCaseByDate 範本中的元素,但它們可用來移除任何配接器範本的變更詳細資料。

如果要移除 BOM 報告中的變更詳細資料,請執行下列動作:

  1. 在 XML 編輯器中開啟配接器範本。
  2. 找出呼叫 diff 指令的 <run> 元素。移除下列幾行:
    <run command="cc_diff" params="$VIEW $1 $2" server="$CCSERVER" dir="/" timeout="360"/>
  3. 找出 diff 指令的 <command> 元素。移除下列幾行:
    <!-- 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>
  4. 尋找 <bomformat> 區段,然後尋找 diff 指令輸出的 <section> 元素。移除下列幾行:
    <section name="diff">
    <field name="diff" title="Change Details"/>
    </section>
  5. 儲存配接器範本。

意見