• Intro Headers Instructions Macros Commands
  • Fork me on GitHub
    • 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
    • Header Reference
    • Instruction
    • Instruction Index
    • Macro Reference
    • Macro Index
    • Command Reference
    • Plugins Reference
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
  • 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