2015-03-02 54 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独立程序。