Search in sources :

Example 1 with BundleLicense

use of aQute.bnd.annotation.headers.BundleLicense in project bnd by bndtools.

the class AnnotationHeaders method doLicense.

/*
	 * Bundle-License header
	 */
private void doLicense(Annotation a) throws Exception {
    BundleLicense annotation = a.getAnnotation(BundleLicense.class);
    Parameters p = new Parameters();
    p.put(annotation.name(), getAttributes(a, "name"));
    add(Constants.BUNDLE_LICENSE, p.toString());
}
Also used : Parameters(aQute.bnd.header.Parameters) BundleLicense(aQute.bnd.annotation.headers.BundleLicense)

Aggregations

BundleLicense (aQute.bnd.annotation.headers.BundleLicense)1 Parameters (aQute.bnd.header.Parameters)1