• Intro Headers Instructions Macros Commands
  • Fork me on GitHub
    • 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
    • Header Reference
    • Instruction
    • Instruction Index
    • Macro Reference
    • Macro Index
    • Command Reference
    • Plugins Reference
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
  • wrap [options] <> <[...]>

    Description

    Wrap a jar into a bundle. This is a poor man’s facility to quickly turn a non-OSGi JAR into an OSGi bundle. It is usually better to write a bnd file and use the bnd .bnd command because that has greater control. Even better is to wrap in bndtools.

    Synopsis

    Options

    [ -b, --bsn <string> ]     - Set the bundle symbolic name to use
    [ -c, --classpath <string>* ] - A classpath specification
    [ -f, --force ]            - Allow override of an existing file
    [ -o, --output <string> ]  - Path to the output, default the name of the
                                input jar with the '.bar' extension. If this is
                                a directory, the output is place there.
    [ -p, --properties <string> ] - A file with properties in bnd format.
    [ -v, --version <version> ] - Set the version to use
    

    Examples

    • Contact
    • Developers
    • More