Author |
Message
|
raphg |
Posted: Thu Apr 04, 2013 7:06 am Post subject: Unneeded project in bar |
|
|
Newbie
Joined: 04 Apr 2013 Posts: 7
|
Hello,
I can't solve a strange problem when building my bar.
I have several opened projects like this in my workspace:
- prj-a
- prj-b
- prj-c
- ...
When I build, say, prj-b, I choose various resources but nothing from prj-a (I don't need anything from this project in this bar). After the build, I have prj-a.jar included in my bar
So I try it another way, and closed my prj-a project in my workspace. Building again the prj-b project, no errors, and the prj-a.jar does not appear anymore in my bar !
I've checked everywhere: no reference to prj-a.
My question is simple: is it possible to get some dependency graph to analyze it and discover why my prj-a project get included in a bar when it shouldn't ?
Thanks in advance for any advice |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Apr 04, 2013 7:08 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
raphg |
Posted: Thu Apr 04, 2013 7:13 am Post subject: |
|
|
Newbie
Joined: 04 Apr 2013 Posts: 7
|
lancelotlinc wrote: |
What version of WMB toolkit are you using? |
I'm using:
WebSphere Message Broker Toolkit - Message Broker
Version: 7.0.0.1
Build id: 7.0.0.1-IFix-20110906_1111 |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Apr 04, 2013 7:33 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Right-click the project that contains your message flows (prj-b-?), select Properties -> Project References, uncheck prj-a.
You should be using the command line or Ant to build your bars. You should avoid (IMHO) building bars manually. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
raphg |
Posted: Thu Apr 04, 2013 7:51 am Post subject: |
|
|
Newbie
Joined: 04 Apr 2013 Posts: 7
|
Unfortunatly, I've already check that: my prj-b is not referenced.
As I've no other idea, I made a full scan of all files in my prj-b, and found no "prj-b" string anywhere.
This problem looks like building process are "looking" on my workspace and add prj-a in my bar as long as it is opened. If I close it, no prj-a is added to my bar (and of course, my bar is still fully functional) |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Apr 04, 2013 7:54 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Again, you should not use the bar editor in toolkit to build bars. Use the mqsicreatebar (mqsipackagebar for version eight) on the command line or Ant driving those commands. This gives you complete control over what goes into your bar.
Doesn't do any good to build a bar with the bar editor when you humanly do not have the ability to exactly build it the same way every time, especially if your on vacation and your co-worker is trying to build it. That's why you should use Ant. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Apr 04, 2013 7:58 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
raphg wrote: |
Unfortunatly, I've already check that: my prj-b is not referenced.
As I've no other idea, I made a full scan of all files in my prj-b, and found no "prj-b" string anywhere.
This problem looks like building process are "looking" on my workspace and add prj-a in my bar as long as it is opened. If I close it, no prj-a is added to my bar (and of course, my bar is still fully functional) |
You said "jar" file.
If a msgflow project references a java project, and that java project references another java project...
Java projects also have different types of references they can make - regular or external.
The nice thing about the v8 bar file editor is that it will give you the equivalent mqsipackagebar command to build the same bar.
This makes the bar file editor an excellent tool to test and figure out what mqsipackagebar options you need to specify to get what you want. |
|
Back to top |
|
 |
rekarm01 |
Posted: Thu Apr 04, 2013 9:31 am Post subject: Re: Unneeded project in bar |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
raphg wrote: |
When I build, say, prj-b, I choose various resources but nothing from prj-a (I don't need anything from this project in this bar). After the build, I have prj-a.jar included in my bar |
If prj-b defines external Java procedures, but does not itself reference any java projects, either directly or indirectly, then the barfile editor may select an arbitrary open java project from the workspace, and add it to the barfile (whether it needs to or not).
WMB 6.0 behaved this way; it's likely that WMB 7.0 does as well. |
|
Back to top |
|
 |
|