2017-06-20 125 views
0

在嘗試爲apache ant使用MKS任務時,我需要指定執行該命令的應用程序。在我找到的文檔中,它例如說「si」或「im」。我對這個被認爲是從命令提示符使用的螞蟻有點困惑,所以我不確定哪個應用程序將執行上述命令,也不知道「si」或「im」可能是什麼應用程序。我正在使用此任務嘗試向Integrity發送和接收構建信息(如果有關的話)。我能夠找到此CLI參考指南的完整性(鏈接在底部),它只使用im作爲前綴,所以我想這是我想使用的,但我會感謝解釋,什麼應用程序即時指示(可能的完整性 - 某些東西)以及用「si」指定的內容。由於針對MKStask的Apache Ant「SI命令」

https://bugs.eclipse.org/bugs/attachment.cgi?id=52225

回答

0

SI命令用於來源完整性任務(事物的SCCM側),而IM命令用於完整性Manager命令(事物的工作流程和文檔管理方)。

的誠信客戶應該在所有平臺上的手冊頁的支持,所以你應該能夠運行人IM人SI看到所有支持的命令的崩潰。

此外,在客戶端的更新版本中,按F1應該會爲您提供幫助界面,其中包含有關CLI命令的文檔。

您發佈的鏈接指南是該產品CLI參考的一個非常舊的版本,並且僅適用於im命令。因爲你正在談論使用Ant,我假設你正在嘗試執行構建,這將主要涉及命令(創建沙箱,檢出成員等),這些命令主要涉及si命令。

0

以下是螞蟻使用Si的幾個例子:

<target name="check.mks.conn"> 

    <echo message="Checking if an MKS connection exists. If not, one will be created." /> 

    <exec executable="si" failonerror="true"> 
     <arg line="connect" /> 
     <arg line="--hostname=${mks.server}" /> 
     <arg line="--port=${mks.port}" /> 
     <arg line="--user=${mks.user}" /> 
     <arg line="--gui" /> 
    </exec> 

</target> 


<!-- =================================================================== --> 
<!-- If the sandbox already exists, resync the files      --> 
<!-- Manually drop any empty folders as resync does not do this.   --> 
<!-- =================================================================== --> 

<target name="resync.sandbox" unless="clean.build"> 
    <exec executable="si" failonerror="true"> 
     <arg line="resync" /> 
     <arg line="--hostname=${mks.server}" /> 
     <arg line="--port=${mks.port}" /> 
     <arg line="-R" /> 
     <arg line="-f" /> 
     <arg line="-Y" /> 
     <arg line="-S ${basedir}\${prj.name}\project.pj" /> 
    </exec> 
    <delete includeemptydirs="true"> 
     <fileset dir="${prj.name}" excludes="**\*.*" /> 
    </delete> 
</target> 


<!-- =================================================================== --> 
<!-- Drop and recreate the sandbox.          --> 
<!-- =================================================================== --> 

<target name="create.sandbox" if="clean.build" > 
    <exec executable="si"> 
     <arg line="dropsandbox" /> 
     <arg line="--hostname=${mks.server}" /> 
     <arg line="--port=${mks.port}" /> 
     <arg line="--noconfirm" /> 
     <arg line="--batch" /> 
     <arg line='--delete=none' /> 
     <arg line="-Y" /> 
     <arg line="${basedir}\${prj.name}\project.pj" /> 
    </exec> 
    <delete dir="${prj.name}" /> 
    <exec executable="si" resultproperty="createSBResult"> 
     <arg line="createsandbox" /> 
     <arg line="--hostname=${mks.server}" /> 
     <arg line="--port=${mks.port}" /> 
     <arg line="--project=c:/Projects/StoreWeb2/${prj.name}/project.pj" /> 
     <arg line="--projectRevision=${checkpoint.version}" /> 
     <arg line="--populate" /> 
     <arg line="--recurse" /> 
     <arg line="-Y" /> 
     <arg line="${basedir}\${prj.name}" /> 
    </exec> 
    <!-- Check if the project is empty but for the mks system file project.pj --> 
    <pathconvert property="is.project.not.empty" setonempty="false"> 
     <fileset dir="${prj.name}"> 
      <exclude name="project.pj"/> 
     </fileset> 
    </pathconvert> 
    <condition property="try.mainline.storeweb"> 
     <not> 
     <and> 
      <equals arg1="0" arg2="${createSBResult}"/> 
      <isset property="is.project.not.empty" /> 
     </and> 
     </not> 
    </condition> 
    <antcall target="create.sandbox.mainline"> 
     <param name="prj.name" value="${prj.name}"/> 
    </antcall> 

</target>