Author |
Message
|
ghoshly |
Posted: Wed Sep 16, 2015 11:43 am Post subject: Version or Other Keyword from Code repository |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
Hello Experts,
I was looking through the topics of "Version and keyword information for deployable objects" which is ac26520_.htm, but in these place developer has to manually make those value changes every time there is a change.
Can there be a way so that those gets updated from the version number of the source code repository, be it CVS, Clear case or TFS?
I was trying but unable to edit the bar file to put some version manually against the Application / Library through the manage tab for bar file editor. Is there a way we can do that?
WMB V 8.0.0.6 |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 16, 2015 12:05 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
ghoshly |
Posted: Wed Sep 16, 2015 1:10 pm Post subject: not working in deployment time |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
Thanks for your response Jeff.
I tried to create a folder called META-INF and put a file called keywords.txt inside that directory under my Application.
This is the path of the file :
Code: |
/ICE_AuditService_App/META-INF/keywords.txt |
Content of the the file :
Code: |
$MQSI Author=ESB Team MQSI$
$MQSI Audit Service Version=v1.0.9 MQSI$ |
When I rebuild the bar file in toolkit, I am not seeing the keywords file or unable to edit version before deployment.
Only thing I could do is to add comment via the manage tab, edit button.
Please point me where I am doing wrong.
Thanks in advance. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 16, 2015 2:22 pm Post subject: Re: not working in deployment time |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ghoshly wrote: |
Please point me where I am doing wrong. |
Isn't that crossing the streams? I've always thought that you list keywords in keywords.txt or add $MQSI keywords to the source files.
I'm assuming that ICE_AuditService_App is the name of the appzip or libzip and not the BAR file. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ghoshly |
Posted: Thu Sep 17, 2015 6:07 am Post subject: Application / Bar |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
Hello Vitor,
ICE_AuditService_App is the name of my application.
I am trying to follow the infocenter link, but could not identify where I am doing the mistake.
Should l try to remove the $MQSI from keywords.txt file and try? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Sep 17, 2015 6:13 am Post subject: Re: Application / Bar |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ghoshly wrote: |
ICE_AuditService_App is the name of my application. |
So is that one of the zip files or isn't it?
ghoshly wrote: |
Should l try to remove the $MQSI from keywords.txt file and try? |
Why not just try it?
Why not additionally putting $MQSI keywords in the source? It's my preferred method because that's an easier way of getting CVS / ClearCase / SVN information into the source. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ghoshly |
Posted: Thu Sep 17, 2015 10:40 am Post subject: |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
I tried removing the $MQSI part from keywords.txt but no difference. I am unable to see the versions through mqsireadbar or mqsilist with -d 2 command. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Sep 17, 2015 10:50 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ghoshly wrote: |
I tried removing the $MQSI part from keywords.txt but no difference. |
Then I would postulate it's in the wrong place in the BAR file.
Have you discounted embedding the version in the source via $MQSI? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ghoshly |
Posted: Thu Sep 17, 2015 8:07 pm Post subject: Official response... |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
I got to know this -
Quote: |
It is necessary to rename and unpack the zip files, adding the
keywords.txt file manually and then pack the zip files and rename again.
There is no way to set the version in the bar file via mqsi commands.
|
I am not sure whether this method is sustainable for long best way to go forward or not.. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 18, 2015 4:38 am Post subject: Re: Official response... |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ghoshly wrote: |
I am not sure whether this method is sustainable for long best way to go forward or not.. |
Doesn't sound it
Like I said above, I always prefer to use $MQSI in the source. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|