Provides the class path for building the jar, the entries are references to the repositories.

  • Example: -buildpath=osgi;version=4.1

  • Values: ${repo;bsns}

  • Pattern: [-\w]+(:?\.[-\w]+)*

Directives

  • version Specifies the range in the repository, project or file.
    • Example: version=project

    • Values: project,type

    • Pattern: project|type|((\(|\[)\d{1,9}(\.\d{1,9}(\.\d{1,9}(\.[-\w]+)?)?)?,\d{1,9}(\.\d{1,9}(\.\d{1,9}(\.[-\w]+)?)?)?(\]|\)))|\d{1,9}(\.\d{1,9}(\.\d{1,9}(\.[-\w]+)?)?)?



The -buildpath instruction is the main mechanism to add build-time dependencies to a project. A dependency is either another project in the workspace, or a bundle in a repository. The -buildpath is only used during compile and build time; it is never used to run projects. Because -buildpath dependencies are only used compile time it’s recommended to add bundles containing only APIs; you don’t need bundles containing implementations.

Examples

An example of the -buildpath could be the following, where three dependencies are defined:

-buildpath: \
 some.other.workspace.project;version=project,\
 osgi.core;version=4.3.1,\
 osgi.cmpn;version=4.3.1

See Also