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 » BAR generated without new changes

Post new topic  Reply to topic Goto page Previous  1, 2
 BAR generated without new changes « View previous topic :: View next topic » 
Author Message
fjb_saper
PostPosted: Tue Dec 13, 2016 11:30 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

sandios wrote:
The workspace that is indicated to ANT is the complete workspace with the code. The code should be patched with the latest modifications (SVN).

I've always found the ant build to be very reliable and very consistent. Are you sure your -p and -o flags have all the content you need and are not missing some? Because from your previous posts it looks like all the latest sources are there. Now if you do not tell ant to use those sources (-p -o -a/k etc...) the bar file will not hold the content you think. Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sandios
PostPosted: Tue Dec 13, 2016 11:20 pm    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2016
Posts: 27

I understand ... but the funny thing is that if I perform a redeployment without touching anything else, just creating the BAR file again, this BAR file is correct with the latest changes.
Back to top
View user's profile Send private message
sandios
PostPosted: Wed Dec 14, 2016 12:16 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2016
Posts: 27

I think that when mqsicreatebar opens the workspace does not give time to build in some cases and generates the bar with old code and cached.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 14, 2016 5:50 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

sandios wrote:
I think that when mqsicreatebar opens the workspace does not give time to build in some cases and generates the bar with old code and cached.

That's why you need to delete the .metadata (reduces the rebuild of the metadata to the relevant projects for the build (vs the whole workspace) and run with -cleanBuild for every bar file.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sandios
PostPosted: Thu Dec 15, 2016 2:39 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2016
Posts: 27

ok, thanks... but we have a lot of projects in workspace, first build will be slow.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 15, 2016 5:34 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

sandios wrote:
ok, thanks... but we have a lot of projects in workspace, first build will be slow.

It won't. Delete the .metadata folder first. The create bar file process will recreate it but only include the projects in the -p / -a parameters... That will make the build go much faster.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sandios
PostPosted: Thu Dec 15, 2016 6:37 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2016
Posts: 27

But ... a doubt, if I delete the .metadata with ant the workspace loses the reference to the projects, right?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 15, 2016 6:43 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

sandios wrote:
But ... a doubt, if I delete the .metadata with ant the workspace loses the reference to the projects, right?

Doesn't mean the projects aren't there and doesn't mean that mqsicreatebar can't find them. Imagine opening the toolkit and doing an import from current directory (workspace directory) and then only choosing the projects relevant for constructing the bar file. How long will it take for the toolkit to build the workspace? Do the same with importing all projects instead of selecting. Compare the time it takes to build the workspace...

Note if you delete the .metadata the projects directories / files have to be right below the workspace for mqsicreatebar to find them. The toolkit is a little bit more flexible there.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sandios
PostPosted: Thu Dec 15, 2016 6:50 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2016
Posts: 27

ok, thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » BAR generated without new changes
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.