Community
Participate
Working Groups
Generator.generateBundleConfigIUs loops over all bundles, and creates a CU for each bundle that needs one. It then adds them to the repository one at a time: metadataRepository.addInstallableUnits(new IInstallableUnit[] {cu}); It should instead gather the CUs to add, and then add them all to the repository at once outside the loop. Otherwise, the repository file is being written once for each generated CU.
Created attachment 94735 [details] patch Here is a potential patch. Note there was a comment in the original code about making sure the CUs are added before the product query is run but I don't see a product query in that method. Is the comment out of date?
The product query happens much later, in createProductIU. The comment is still relevant.
Ok, I've resurrected the comment and added a bit more info and released the patch. Closing.