• 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
  • p_allsourcepath

    Prev Next
    Project
    Get paths to all source directories

    Summary

    The p_allsourcepath macro returns all source directories for the project, including those from dependencies, as a comma-separated list.

    Syntax

    ${p_allsourcepath}
    

    Parameters

    None - this macro takes no parameters.

    Behavior

    • Returns all source directories
    • Includes project and dependency sources
    • Paths are absolute
    • Results are comma-separated

    Examples

    Get all source paths:

    All-Sources: ${p_allsourcepath}
    

    Use Cases

    • Complete source documentation
    • IDE integration
    • Source analysis tools
    • Documentation generation

    Notes

    • More comprehensive than ${p_sourcepath}
    • Includes dependency sources
    • Returns absolute paths
    • See also: ${p_sourcepath} for project sources only

    See test cases in MacroTestsForDocsExamples.java

Prev Next
Search
    • Home