|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
setting mqsiprofile in ANT on Linux |
« View previous topic :: View next topic » |
Author |
Message
|
sumit |
Posted: Mon Mar 09, 2015 4:29 pm Post subject: setting mqsiprofile in ANT on Linux |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
Hi,
IIBv9.0.0.2
OS- Linux
Another problem for which I need suggestions.
To achieve continuous integration, I've created an ANT script to execute mqsiapplybaroverride, mqsideploy and mqsichangeflowmonitoring (mqsideploybaroverride was added in the last after testing that other 2 commands were working fine).
I am running this ant script with a user id which has mqsiprofile set. However, when I am executing the script, I am getting this error
Code: |
[exec] Error: Could not find or load main class com.ibm.broker.config.util.ApplyBarOverride |
I have checked that I can run mqsiapplybaroverride command directly through command prompt.
I've checked some suggestion given in this site. Have also checked this and modified the script to look like-
Code: |
<exec executable=". ${mqsi.dir}/mqsiprofile;mqsiapplybaroverride" failonerror="true" logError="true" vmlauncher="false" append="true">
<arg value="-b"/>
<arg value="${barfile}"/>
<arg value="-k"/>
<arg value="${project}"/>
<arg value="-p"/>
<arg value="${bar.update.properties}"/>
<arg value="chan-o"/>
<arg value="${updated.barfile}"/>
<arg value="-v"/>
<arg value="${overridetrace.file.name}"/>
</exec> |
Yet, no success. What am I missing? _________________ Regards
Sumit |
|
Back to top |
|
 |
sumit |
Posted: Mon Mar 09, 2015 4:35 pm Post subject: |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
I am rather inclined towards a fix that can be done in ANT script itself, instead of calling a shell script.
Using a shell script for it would probably be the last option that I am keeping. _________________ Regards
Sumit |
|
Back to top |
|
 |
sumit |
Posted: Tue Mar 10, 2015 7:58 am Post subject: |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
This is working for us now. For any user facing similar problem, this is what we did-
1. Referred this link
2. Updated exec of ANT to look like=
Code: |
<exec executable="/bin/sh">
<arg value="-c"/>
<arg value="source <mqsiprofilepath>/mqsiprofile;mqsiapplybaroverride .... <parameters>
</exec> |
I am still not sure why ANT is not inherriting the mqsiprofile at the userid level. _________________ Regards
Sumit |
|
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
|
|
|
|