|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Deploying bar file using ANT script |
« View previous topic :: View next topic » |
Author |
Message
|
cvag |
Posted: Thu Nov 05, 2009 10:56 pm Post subject: Deploying bar file using ANT script |
|
|
Centurion
Joined: 17 Mar 2008 Posts: 127
|
Hi
Am trying to deploy the bar file using automation ANT script, but facing build failed problem.
Script:
<project name="project" default="run">
<target name="run" description="">
<property name="mqsi.dir" value="C:\Program Files\IBM\MQSI\7.0\bin" />
<property name="bar" value="C:\Documents and Settings\cc_sgunip\IBM\wmbt70\workspace\XMLNSCVALIDATIONMF\XMLNSCVALIDATION.bar" />
<property name="ipaddress" value="localhost" />
<property name="port" value="2414" />
<property name="queuemgr" value="MB7QMGR" />
<property name="broker" value="MB7BROKER" />
<property name="exegroup" value="default" />
<antcall target="mqsideploy.deploybar" />
</target>
<!--
Target to build the broker archive using mqsicreatebar
-->
<target name="mqsideploy.deploybar">
<!-- <exec executable="${mqsi.dir}\mqsideploy.bat" spawn="false"> -->
<exec executable="${mqsi.dir}\mqsideploy.bat" failonerror="true" logError="true" vmlauncher="false" append="true">
<arg value="-i" />
<arg value="${ipaddress}" />
<arg value="-p" />
<arg value="${port}" />
<arg value="-q" />
<arg value="${queuemgr}" />
<arg value="-b" />
<arg value="${broker}" />
<arg value="-e" />
<arg value="${exegroup}" />
<arg value="-a" />
<arg value="${bar}" />
</exec>
</target>
</project>
I have tried in executing the script through command console aswell as at command prompt.
Result after execution:
C:\Program Files\IBM\MQSI\7.0\bin>ant
Buildfile: build.xml
run:
mqsideploy.deploybar:
[exec] '"C:\Program Files\IBM\MQSI\7.0\bin\mqsideploy.bat"' is not recognized as an internal or external command, [exec] operable program or batch file.
BUILD FAILED
C:\Program Files\IBM\MQSI\7.0\bin\build.xml:10: The following error occurred while executing this line:
C:\Program Files\IBM\MQSI\7.0\bin\build.xml:18: exec returned: 1
Could you please suggest where the script went wrong and the execution of the script, as the script for mqsicreatebar worked perfectyl.
Thanks in Advance
 |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Nov 05, 2009 11:19 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Running V7 already eh? Didn't think it was released until about now
Did you enable the definitions contained in mqsiprofile before trying to use WBI components?
This
Quote: |
mqsideploy.deploybar:
[exec] '"C:\Program Files\IBM\MQSI\7.0\bin\mqsideploy.bat"' is not recognized as an internal or external command, [exec] operable program or batch file.
|
Suggested that very issue. That is always assuming that the mqsideploy.bat does exist on that path. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
cvag |
Posted: Fri Nov 06, 2009 2:54 am Post subject: |
|
|
Centurion
Joined: 17 Mar 2008 Posts: 127
|
Thanks for ur response,
Yes using beta versions of MB7.0 and MQ 7.0.1
ANT script was working fine, explicitly executing from "C:\Program Files\IBM\MQSI\7.0\bin" path in command console. But the script was not working from command prompt until i set the environment varaibles which are set in "mqsiprofile.bat"
My doubt is: ANT script for creating bar is working fine from command prompt though i do not set the environment varaibles.
Could anybody pls tell me whats the difference.
Thanks |
|
Back to top |
|
 |
Deeko |
Posted: Fri Nov 06, 2009 3:16 am Post subject: |
|
|
 Acolyte
Joined: 16 May 2001 Posts: 72 Location: Edinburgh, UK
|
Hey cvag,
I'm another V7 beta user. Just installed the GA yesterday!
Anyway - I had grief with some of my projects before where there was a space in the path (i.e. the messageflow project name). I had to use "'project name/msgflow'" (note the single embedded quotes) - give that a bash. My ant scripts all run from with eclipse (using eclipse.home etc.) so I haven't tried this...
Cheers,
Derek. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|