Author |
Message
|
fjb_saper |
Posted: Tue Dec 13, 2016 11:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
sandios |
Posted: Tue Dec 13, 2016 11:20 pm Post subject: |
|
|
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 |
|
 |
sandios |
Posted: Wed Dec 14, 2016 12:16 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed Dec 14, 2016 5:50 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
sandios |
Posted: Thu Dec 15, 2016 2:39 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Dec 15, 2016 5:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
sandios |
Posted: Thu Dec 15, 2016 6:37 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Dec 15, 2016 6:43 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
sandios |
Posted: Thu Dec 15, 2016 6:50 am Post subject: |
|
|
Apprentice
Joined: 13 Jun 2016 Posts: 27
|
|
Back to top |
|
 |
|