• Intro Headers Instructions Macros
  • Fork me on GitHub
    • Release
    • 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
    • File Format
    • Header Reference
    • Instruction
    • Instruction Index
    • Macro Reference
    • Command Reference
    • Plugins Reference
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
    Supported by OSGi enRoute
  • replace ';' LIST ';' REGEX (';' STRING (';' STRING)? )?

    replace ; <list> ; <regex> [ ; <replacement> [ ; <delimiter> ] ]
    

    Replace all elements of the list that match the regular expression regex with the replacement. The replacement can use the $[0-9] back references defined in the regular expressions. The macro uses item.replaceAll(regex,replacement) method to do the replacement. The default replacement is the empty string. The default delimiter is “, “.

    Examples

    impls: foo,bar
    ${replace;${impls};$;.jar}       =>  foo.jar, bar.jar
    
    • Contact
    • Developers
    • More