use of aQute.bnd.osgi.resource.CapabilityBuilder in project bnd by bndtools.
the class BridgeRepository method addInformationCapability.
public static void addInformationCapability(ResourceBuilder rb, String name, String from, Throwable error) {
try {
CapabilityBuilder c = new CapabilityBuilder("bnd.info");
c.addAttribute("name", name);
if (from != null)
c.addAttribute("from", from);
if (error != null)
c.addAttribute("error", error.toString());
rb.addCapability(c);
} catch (Exception e) {
e.printStackTrace();
}
}
Aggregations