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 » WebSphere Message Broker (ACE) Support » mqsideploy with Ant

Post new topic  Reply to topic
 mqsideploy with Ant « View previous topic :: View next topic » 
Author Message
lancelotlinc
PostPosted: Fri Jul 01, 2011 9:54 am    Post subject: mqsideploy with Ant Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Greetings, now that i have a workspace with no Red-X's and bar files created by mqsicreatebar, I want to deploy those bars to a location using Ant. When invoking mqsideploy from Ant, I get the usual mqsiprofile error since Ant task has not sourced the mqsiprofile. Has anyone figured out a slick way to include the mqsiprofile in an Ant deployment script. I can think of a few alternatives, but they seem very messy, convoluted, and generally not platform agnostic. Please share your experiences using Ant to deploy bar files. Lance
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Jul 01, 2011 11:07 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I typically solve this by running the mqsiprofile in the command environment that actually starts ant.

I've seen a clever solution here somewhere from smdavies66 that used the semicolon to run more than one command in the ant task executable parameter.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Jul 01, 2011 11:33 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

mqjeff wrote:
I typically solve this by running the mqsiprofile in the command environment that actually starts ant.

I've seen a clever solution here somewhere from smdavies66 that used the semicolon to run more than one command in the ant task executable parameter.


Thanks mqjeff but it should be smdavies99!.
Ok, it is friday.

From memory it goes something like this
Code:


 . /opt/ibm/mqsi/7.0/bin/mqsiprofile;mqsideploy ....


_________________
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
View user's profile Send private message
Vitor
PostPosted: Fri Jul 01, 2011 11:39 am    Post subject: Reply with quote

Grand High Poobah

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

smdavies99 wrote:
Thanks mqjeff but it should be smdavies99!.


He's probably doing his Arnold The Bat impression again & posting while hanging upside down from the ceiling.

Or has accidently engaged the Australian character set on his keyboard.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sat Jul 02, 2011 6:04 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

smdavies99 wrote:
Thanks mqjeff but it should be smdavies99!.

oops:

smdavies99 wrote:
Ok, it is friday.

Yes. I was gonna just use your first name, but then I realized that might be gauche, but then I was too lazy to double-check.
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 » WebSphere Message Broker (ACE) Support » mqsideploy with Ant
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.