• Intro Headers Instructions Macros Commands
  • Fork me on GitHub
    • Introduction
    • How to install bnd
    • Guided Tour
    • Guided Tour Workspace & Projects
    • Concepts
    • Best practices
    • Build
    • Project Setup
    • Generating JARs
    • Versioning
    • Baselining
    • Service Components
    • Metatype
    • Contracts
    • Bundle Annotations
    • Accessor Properties
    • SPI Annotations
    • Resolving Dependencies
    • Launching
    • Startlevels
    • Testing
    • Testing with Launchpad
    • Packaging Applications
    • JPMS Libraries
    • Wrapping Libraries to OSGi Bundles
    • Generating Documentation
    • Commands
    • For Developers
    • Tips for Windows users
    • Tools bound to bnd
    • Headers
    • Instruction Reference
    • Instruction Index
    • Macro Reference
    • Macro Index
    • Plugins
    • External Plugins
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions


  • Ant Tasks

    The bnd.jar file can also be used as an ANT task. The following example shows how you can use it from an ANT file.

    You can set the following attributes:

             
      !Attribute   !Description  
      classpath   Comma separated list of file names. File paths are relative from the ant project file.  
      eclipse   True or false. True if the eclipse .classpath file should be read (default).  
      failok   Succeed even if there are errors.  
      exceptions   If errors occur, show the exception stack trace.  
      files   A comma separated list of bnd files  
      sourcepath   A source path  
      output   Where the output should go  

    The following tasks have also been added: ||task name||Class||attributes|| ||bndeclipse||EclipseTask||prefix=’project.’|| ||bndexpand||ExpandPropertiesTask||propertyFile=’'|| ||bndwrap||WrapTask||jars='', output='

    ', definitions='', classpath=''||

    • GitHub