Author |
Message
|
mqxplorer |
Posted: Tue Dec 13, 2011 8:57 am Post subject: Getting the version number of MF/MS populated dynamically |
|
|
 Master
Joined: 22 Jun 2009 Posts: 206
|
Hi All,
I have gone through some dicsussion tpoics in this forum regarding getting the version number of MF/MS poulated dynamically from source control, however, I could not get it done successfully.
One of the discussion topics I have gone through was http://www.mqseries.net/phpBB2/viewtopic.php?t=28067&postdays=0&postorder=asc&start=0
We are using V7 broker and Visual Source Safe (VSS) as source control. I have followed the instructions in some of the disucssion topics and specified '$id$' for the message flow in the 'Version' field of the message flow 'Properties' and checked into VSS. I checked out the file from VSS and built the bar and deployed to broker. In the EG when I see the flow info by clicking on the flow, I see just $id$ in the 'Version' info. I thought I would get the version info from VSS and will show the version number.
I have read something from another thread ...
Quote: |
To make keyword substitution work you have to change ascii/binary property to ASCII -kkv for you flows and esql files etc. |
I tried doing it this way...
Right click on message flow and select the 'Resource' option and select the radio button 'Other' for the option 'Text file encoding' on the right hand side and selected US-ASCII from the drop down list.
It still does not work.
Do I have to ask my VSS admin to change any settings in VSS also?
Thanks in advance.
Thanks
mqxplorer |
|
Back to top |
|
 |
Vitor |
Posted: Tue Dec 13, 2011 9:02 am Post subject: Re: Getting the version number of MF/MS populated dynamicall |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqxplorer wrote: |
I thought I would get the version info from VSS and will show the version number. |
Why would you think that? According to [url=http://msdn.microsoft.com/en-us/library/d826hy97(VS.80).aspx]this[/url] the $Id$ keyword isn't one of those supported by VSS (of which my knowledge is mostly what Mr Google just told me). IHMO what you want is $Revision:$
mqxplorer wrote: |
Do I have to ask my VSS admin to change any settings in VSS also? |
You'd certainly have to in SubVersion (where the $Id$ keyword is supported). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Sam Uppu |
Posted: Tue Dec 13, 2011 2:58 pm Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
Try this
$MQSI Version=$Revision: $MQSI$ to the Long description of the message flow. |
|
Back to top |
|
 |
mqxplorer |
Posted: Thu Dec 15, 2011 7:37 am Post subject: |
|
|
 Master
Joined: 22 Jun 2009 Posts: 206
|
Sam Uppu wrote: |
Try this
$MQSI Version=$Revision: $MQSI$ to the Long description of the message flow. |
The deployed bar with the above specification in the flow long description displays like below.
Code: |
Version $Revision: $ |
Should I have to ask my VSS admins to make any changes so that version from VSS will be dynamically picked up?
Thanks
mqxplorer |
|
Back to top |
|
 |
Sam Uppu |
Posted: Thu Dec 15, 2011 11:15 am Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
The one I suggested is good for CVS.
mqxplorer wrote: |
Should I have to ask my VSS admins to make any changes so that version from VSS will be dynamically picked up?
|
You can give a try. |
|
Back to top |
|
 |
|