• 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
  • -sources BOOLEAN

    Prev Next
    Builder
    Include the source code (if available on the -sourcepath) in the bundle at OSGI-OPT/src

    • Example: -sources=true

    • Values: true,false

    • Pattern: true|false|TRUE|FALSE



    The -sources instruction tells bnd to include the source code (if available on the -sourcepath) in the bundle under the OSGI-OPT/src directory. This is useful for distributing source code along with your binary bundle, making it easier for others to debug or understand your code.

    When enabled, bnd will collect the relevant source files and package them in the appropriate location within the bundle.


    TODO Needs review - AI Generated content

Prev Next
Search
    • Home