| Author | Message | 
		
		  | GeneRK4 | 
			  
				|  Posted: Wed Mar 04, 2015 4:19 am    Post subject: Using mqsichangeproperties in ANT script |   |  | 
		
		  | Master
 
 
 Joined: 08 Jul 2013Posts: 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 |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Wed Mar 04, 2015 5:33 am    Post subject: Re: Using mqsichangeproperties in ANT script |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 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 |  | 
		
		  |  | 
		
		  | mqjeff | 
			  
				|  Posted: Wed Mar 04, 2015 6:07 am    Post subject: Re: Using mqsichangeproperties in ANT script |   |  | 
		
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 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 |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Wed Mar 04, 2015 6:12 am    Post subject: Re: Using mqsichangeproperties in ANT script |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 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 |  | 
		
		  |  | 
		
		  | mqjeff | 
			  
				|  Posted: Wed Mar 04, 2015 6:14 am    Post subject: Re: Using mqsichangeproperties in ANT script |   |  | 
		
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 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 |  | 
		
		  |  | 
		
		  |  |