@Override public Artifact getArtifact() { return new Artifact(framework); }
/** * Create a copy of the artifact with a different id * * @param id The new id * @return The copy of the feature with the new id */ public Artifact copy(final ArtifactId id) { final Artifact result = new Artifact(id); result.getMetadata().putAll(this.getMetadata()); return result; }
} else { result.add(new Artifact(ArtifactId.fromMvnId(o)));
final Artifact bundle = new Artifact(extractArtifactId(tempDir, newFile)); final BundleDescriptor info = new BundleDescriptorImpl(bundle, newFile, startLevel); bundle.getMetadata().put("content-package", cp.getArtifact().getId().toMvnId());
for(final Artifact artifact : group) { final ArtifactId id = ArtifactId.fromMvnUrl(artifact.toMvnUrl()); final org.apache.sling.feature.Artifact newArtifact = new org.apache.sling.feature.Artifact(id);
false); for(final ArtifactId id : usedFeatures) { list.getArtifacts().add(new Artifact(id));