使用Ant腳本時,我試圖構建要在IIB Server中部署的條形文件。但我面臨這樣的錯誤:如何解決ANT「exec」命令行錯誤消息?
BIP0960E不正確的 「-a」, 「-l」, 「-p」,或 「O」 提供的參數mqsicreatebar
請不要讓我知道如何解決這個錯誤。
謝謝。
我使用以下ant腳本:
<?xml version="1.0" encoding="UTF-8"?>
<project name="Test" default="Create_bar" basedir=".">
<property file="ucd.properties"></property>
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="C:\apache-ant-1.9.6\lib\antcontrib.jar"/>
</classpath>
</taskdef>
<!-- Making Windows command environment -->
<target name="mqsiprofile.cmd">
<exec executable="${broker.mqsi.path}\mqsiprofile.cmd" />
</target>
// <!-- Creating a bar file -->
<target name="Create_bar">
<for list="${project_name}" delimiter="," param="pName">
<sequential>
<echo message="@{pName}"/>
<exec executable="${toolkit.home}\mqsicreatebar.exe" spawn="false" vmlauncher="false" failonerror="true">
// <!-- project's workspace-->
<arg value="-data" />
<arg value="${workspaces.dir}" />
<!--barfile generated path-->
<arg value="-b" />
<arg value="${bar.loc}\@{pName}.msgflow.generated.bar" />
<!--project Name-->
<arg value="-p" />
<arg value="@{pName}" />
<!--Message flows for its corresponding projects which has given in cvsCheckout.properties-->
<arg value="-o" />
<arg line="@{bar.loc}\${@{pName}.flow_name}" />
<arg line="@{bar.loc}\IAM_Demo_Compute.esql" />
<arg value="-deployAsSource" />
</exec>
</sequential>
</for>
</target>
</project>
我把所有必需的組件來構建BAR文件。