【发布时间】:2016-02-05 18:10:05
【问题描述】:
使用 Ant 脚本,我正在尝试构建 bar 文件以部署在 IIB Server 中。但我面临如下错误:
BIP0960E 提供给 mqsicreatebar 的“-a”、“-l”、“-p”或“-o”参数不正确
请告诉我如何解决这个错误。
谢谢。
我正在使用以下 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 文件。
【问题讨论】:
标签: java deployment ant continuous-integration ant-contrib