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

    Prev Next
    Project
    Get the absolute path to the project's output directory

    Summary

    The p_output macro returns the absolute path to the project’s output/target directory where compiled classes and built artifacts are placed.

    Syntax

    ${p_output}
    

    Parameters

    None - this macro takes no parameters.

    Behavior

    • Returns absolute path to output directory
    • Typically bin or target directory
    • No arguments allowed

    Examples

    Get output directory:

    Output-Directory: ${p_output}
    

    Reference output in paths:

    classes.location=${p_output}/classes
    

    Use Cases

    • Referencing build output location
    • Configuring post-build tasks
    • Documentation of build structure
    • Tool integration

    Notes

    • Returns absolute path
    • Usually bin or target directory
    • Cannot take arguments
    • See also: ${p_sourcepath} for source directories
    • See also: ${basedir} for project root

    See test cases in MacroTestsForDocsExamples.java

Prev Next
Search
    • Home