• Intro Headers Instructions Macros Commands
Fork me on GitHub
    • Getting Started
      • Introduction
      • How to install bnd
      • Guided Tour Workspace & Projects
      • bnd / bndlib Features and JAR Wrapping Techniques
      • FAQ - Frequently Asked Questions
    • Concepts and Practices
      • Concepts
      • Background
      • Best practices
    • Build and Development
      • Build
      • Generating JARs
      • Versioning
      • Baselining
      • Service Components
      • Metatype
      • Contracts
      • Bundle Annotations
      • Accessor Properties
      • SPI Annotations
    • Dependency and Launching
      • Resolving Dependencies
      • Launching
      • Startlevels
    • Testing
      • Testing
      • Testing with Launchpad
    • Packaging and Distribution
      • Packaging Applications
      • JPMS Libraries
      • Wrapping Libraries to OSGi Bundles
    • Documentation and Tools
      • Generating Documentation
      • bnd CLI Commands
      • For Developers
      • Templates for Workspaces
      • Tips for Windows users
      • Tools bound to bnd
    • Reference Material
      • Reference
      • Headers
      • Instruction Reference
      • Instruction Index
      • Macro Reference
      • Macro Index
      • Plugins
      • External Plugins
    • Configuration and Troubleshooting
      • Settings
      • Errors
      • Warnings
  • add

    Prev Next

    Description

    Add a project, workspace, plugin or template fragment to the workspace

    Synopsis:

       add  <what> ...
    

    Available sub-commands

    • fragment - Add template fragment(s) to the current workspace.
    • plugin - Add a plugin
    • project - Create a project in the current workspace
    • workspace - Create a bnd workspace in the current folder. The workspace can also be inialized with a set of template fragments.

    fragment

    Add template fragment(s) to the current workspace. Leave the name empty to see a list of available templates at the index.\n\nExample:\n bnd add fragment osgi gradle

    Synopsis:

       fragment  <[name]...>
    

    plugin

    Add a plugin

    Synopsis:

       plugin [options]  <[name]> ...
    
    Options:
    • [ -a --alias <string> ]
    • [ -f --force ]

    project

    Create a project in the current workspace

    Synopsis:

       project  <name> ...
    

    workspace

    Create a bnd workspace in the current folder. The workspace can also be inialized with a set of template fragments.

    Example: bnd add workspace -f osgi -f gradle ‘myworkspace’

    See https://bnd.bndtools.org/chapters/620-template-fragments.html for more information.

    Synopsis:

       workspace [options]  <name> ...
    
    Options:
    • [ -f --fragment <string>* ] Specify template fragment(s) by name to install together with the created workspace. Fragments are identified by the ‘name’ attribute in the index. Specify multiple fragments by repeating the -f option. To see a list of available templates use ‘bnd add fragment’ without arguments.
Prev Next
Search
    • Home