• Intro Headers Instructions Macros
  • Fork me on GitHub
    • Release
    • Introduction
    • How to install bnd
    • Guided Tour
    • Guided Tour Workspace & Projects
    • Concepts
    • Best practices
    • Build
    • Generating JARs
    • Versioning
    • Baselining
    • Service Components
    • Metatype
    • Contracts
    • Manifest Annotations
    • Resolving Dependencies
    • Launching
    • Testing
    • Packaging Applications
    • Wrapping Libraries to OSGi Bundles
    • From the command line
    • For Developers
    • Plugins
    • Tools bound to bnd
    • File Format
    • Header Reference
    • Instruction
    • Instruction Index
    • Macro Reference
    • Command Reference
    • Plugins Reference
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
    Supported by OSGi enRoute
  • Bundle-Category STRING (',' STRING )

    /*
     * Bundle-Category header
     */
    private void doBundleCategory(BundleCategory annotation) {
    	if (annotation.custom() != null)
    		for (String s : annotation.custom()) {
    			add(Constants.BUNDLE_CATEGORY, s);
    		}
    
    	if (annotation.value() != null)
    		for (Category s : annotation.value()) {
    			add(Constants.BUNDLE_CATEGORY, s.toString());
    		}
    }
    
    • Contact
    • Developers
    • More