2017-06-20 30 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>