2015-03-02 38 views

回答

1

應該可以通過<exec> ant任務調用scm命令。

你可以看到一些例子,「Using the SCM Command Line Interface in builds

<property name="run" value="/path/to/run_and_filter.pl"/> 
<property name="scm" value="/path/to/scm"/> 

<target name="__scm-checkin"> 
     <!-- Do the initial commit --> 
     <exec executable="${run}" failonerror="true" outputproperty="cs"> 
      <arg value="${scm} --non-interactive -a n -u y checkin ${roots}"/> 
      <arg value="  \(([^)]+)\)"/> 
     </exec> 

     <!-- Deliver --> 
     <exec executable="${scm}" failonerror="true"> 
      <arg value="--non-interactive"/> 
      <arg value="deliver"/> 
      <arg value="${cs}"/> 
     </exec> 
</target> 

確保雖然採用單片機,激光共聚焦顯微鏡不是其啓動達蒙,並可能導致螞蟻任務掛起:看「Calling lscm.bat from a build script causes a hang」。

1

RTC沒有「檢出」操作,這是隱式的。它只有一個檢查操作。如果要從存儲庫工作空間獲取代碼,可以使用scm命令加載它,如前所述,或使用Plain API創建Java獨立程序。