aQute.bnd.build.model.OSGI_CORE Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biz.aQute.bndlib Show documentation
Show all versions of biz.aQute.bndlib Show documentation
bndlib: A Swiss Army Knife for OSGi
package aQute.bnd.build.model;
import java.io.IOException;
import java.util.jar.Manifest;
import aQute.bnd.osgi.Domain;
public enum OSGI_CORE {
R4_0_1, R4_2_1, R4_3_0, R4_3_1, R5_0_0, R6_0_0;
private Domain manifest;
public Domain getManifest() throws IOException {
if (manifest == null) {
Manifest m = new Manifest(OSGI_CORE.class.getResourceAsStream("osgi-core/" + name() + ".mf"));
manifest = Domain.domain(m);
}
return manifest;
}
}