예제: 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. 어댑터 템플리트를 저장하십시오.

피드백