for (Bundle b : f.getBundle()) { Bundle bundle = objectFactory.createBundle(); bundle.setLocation(b.getLocation()); feature.getBundle().add(bundle);
for (Bundle b : f.getBundle()) { Bundle bundle = objectFactory.createBundle(); bundle.setLocation(b.getLocation()); feature.getBundle().add(bundle);
for (String innerBundle : bundles) { Bundle bundle = new Bundle(); bundle.setLocation(innerBundle); wrapFeature.getBundle().add(bundle);
location = location.replace("profile:", "file:etc/"); Bundle bun = new Bundle(); bun.setLocation(location); generated.getBundle().add(bun);
location = location.replace("profile:", "file:etc/"); Bundle bun = new Bundle(); bun.setLocation(location); generated.getBundle().add(bun);
bundle.setLocation(this.dependencyHelper.artifactToMvn(project.getArtifact(), project.getVersion())); if (startLevel != null) { bundle.setStartLevel(startLevel); bundle.setLocation(bundleName);
/** * Processes {@link Bundle bundle definition} and (according to override instructions) maybe sets different target * location and {@link BundleInfo#isOverriden()} flag. */ private void staticOverrideBundle(Bundle bundle) { bundle.setOverriden(BundleInfo.BundleOverrideMode.NONE); for (BundleReplacements.OverrideBundle override : this.getInstructions().getBundleReplacements().getOverrideBundles()) { String originalLocation = bundle.getLocation(); if (override.getOriginalUriPattern().matches(originalLocation)) { LOG.debug("Overriding bundle location \"" + originalLocation + "\" with \"" + override.getReplacement() + "\""); bundle.setOriginalLocation(originalLocation); if (override.getMode() == BundleReplacements.BundleOverrideMode.MAVEN) { bundle.setOverriden(BundleInfo.BundleOverrideMode.MAVEN); } else { bundle.setOverriden(BundleInfo.BundleOverrideMode.OSGI); } bundle.setLocation(override.getReplacement()); // TOCHECK: last rule wins - no break!!! //break; } } }
bundle.setLocation(this.dependencyHelper.artifactToMvn(project.getArtifact(), project.getVersion())); if (startLevel != null) { bundle.setStartLevel(startLevel); bundle.setLocation(bundleName);