command

配接器 XML 檔可包含數個 <command>元素;每個元素定義一個可由 <run> 元素在 <interface> 元素中參照的具名指令。<command> 元素是在 <interface> 元素之外指定,因此,XML 檔案內的多重介面可重複使用相同的指令。

指令如果要呼叫其他指令,可以在 <resultsblock> 元素的 <match> 元素中,內嵌 <run> 指令。

<command> 元素會包含 <execute> 和<resultsblock>元素的結構,如下所示:
<command name="p4_changes">
   <execute>
       command line
   </execute>
   <resultsblock>
      Has its own structure.
   </resultsblock>
</command>

或者,您可以在區塊中以 <integrate> 元素取代 <execute> 元素。

使用 mode 屬性來定義 <command> 元素的模式。會使用 mode 屬性 exec,以觸發伺服器啟動並立即處理指令。
註: Rational® Build Forge® 8.0 中,僅支援預設 exec mode。

意見