ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Using mqsichangeproperties in ANT script

Post new topic  Reply to topic
 Using mqsichangeproperties in ANT script « View previous topic :: View next topic » 
Author Message
GeneRK4
PostPosted: Wed Mar 04, 2015 4:19 am    Post subject: Using mqsichangeproperties in ANT script Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

I am facing problem in executing the ANT script for mqsichangeproperties command.

mqsiprofile.cmd – This command should be executed before the execution of commands like mqsichangeproperties, mqsipackagebar, mqsideployscript etc.
I had included the below line to execute mqsiprofile command in the respective .bat files.

CALL C:\Progra~1\IBM\MQSI\8.0.0.1\bin\mqsiprofile.cmd

But since mqsichangeproperties is a .exe file I am not able to edit it.Hence I am not able to include mqsiprofile.cmd as part of ANT script.I have to manually run it before executing mqsichangeproperties.Is there anyother way to achieve this?
Kindly help me..
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Mar 04, 2015 5:33 am    Post subject: Re: Using mqsichangeproperties in ANT script Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

GeneRK4 wrote:
Is there anyother way to achieve this?


Create a bat file that runs mqsiprofile and then mqsichangeproperties, then execute that from ant?

Other and possibly better solutions are undoubtably available.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Mar 04, 2015 6:07 am    Post subject: Re: Using mqsichangeproperties in ANT script Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
Other and possibly better solutions are undoubtably available.

I've generally run ant from within a shell that already had mqsiprofile applied.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Mar 04, 2015 6:12 am    Post subject: Re: Using mqsichangeproperties in ANT script Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
Vitor wrote:
Other and possibly better solutions are undoubtably available.

I've generally run ant from within a shell that already had mqsiprofile applied.


That's so obviously I assumed the OP had already discounted it.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Mar 04, 2015 6:14 am    Post subject: Re: Using mqsichangeproperties in ANT script Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
mqjeff wrote:
Vitor wrote:
Other and possibly better solutions are undoubtably available.

I've generally run ant from within a shell that already had mqsiprofile applied.


That's so obviously I assumed the OP had already discounted it.


There's no particular reason to actually discount it. The only reason I've run into was having to set up a separate userid to run the ant for IIB from any other build processes.

I have occasionally tried to do things with a wrapper script that ran mqsiprofile and then ran whatever command was passed in. Did it work? Sometimes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Using mqsichangeproperties in ANT script
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.