final List<String> artifactOverrides, final String originKey) { for(final Map.Entry<Integer, List<Artifact>> entry : source.getBundlesByStartOrder().entrySet()) { for(final Artifact a : entry.getValue()) { Set<ArtifactId> artifactIds = a.getAliases(true); Artifact s = target.getSame(id); } else { selectedArtifacts.addAll(selectArtifactOverride(existing, a, artifactOverrides)); while(target.removeSame(existing.getId())) { if (sourceFeature != null && source.contains(sa) && sa.getMetadata().get(originKey) == null) { cp.getMetadata().put(originKey, sourceFeature.getId().toMvnId()); target.add(cp);
bundles.add(newArtifact);
/** * Get all bundle descriptors for a feature / application * @param bundles The bundles * @param desc The descriptor * @throws IOException If something goes wrong or no suitable scanner is found. */ private void getBundleInfos(final Bundles bundles, final ContainerDescriptor desc) throws IOException { for(final Map.Entry<Integer, List<Artifact>> entry : bundles.getBundlesByStartOrder().entrySet()) { for(final Artifact bundle : entry.getValue() ) { final BundleDescriptor bundleDesc = scan(bundle, entry.getKey()); desc.getBundleDescriptors().add(bundleDesc); } } }
if ( ignoreVersion ) { while (feature.getBundles().removeSame(a)) { removed = feature.getBundles().removeExact(a);
result.getBundles().clear(); result.getFrameworkProperties().clear(); result.getConfigurations().clear();
result.getBundles().add(b.copy(b.getId()));