...
Besides providing a service API, OBR implements a Felix shell command for accessing its functionality. For the end user, the OBR shell command is accessed using the text-based or GUI-based user interfaces for Felix' shell service. This section describes the syntax for the OBR shell command.
obr help
Syntax:
No Format |
---|
obr help [add-url | remove-url | list-url | list | info | deploy | start | source | javadoc]
|
...
obr list-url
Syntax:
...
obr add-url
Syntax:
No Format |
---|
obr add-url [<repository-file-url> ...]
|
...
Anchor |
---|
| obr-remove-url |
---|
| obr-remove-url |
---|
|
obr remove-url
Syntax:
No Format |
---|
obr remove-url [<repository-file-url> ...]
|
This command removes a repository file to the set of repository files for which the Repository Admin service provides access. The repository file is represented as a URL.
obr list
Syntax:
No Format |
---|
obr list [<string> ...]
|
This command lists bundles available in the bundle repository. If no arguments are specified, then all available bundles are listed, otherwise any arguments are concatenated with spaces and used as a substring filter on the bundle names.
obr info
Syntax:
No Format |
---|
obr info <bundle-name>[;<version>] ...
|
...
obr deploy
Syntax:
No Format |
---|
obr deploy <bundle-name>[;<version>] ... | <bundle-id> ...
|
...
For the above example, if version "1.0.0" of "Bundle Repository" is already installed locally, then the command will attempt to update it and all of its dependencies; otherwise, the command will install it and all of its dependencies.
obr start
Syntax:
No Format |
---|
obr start [-nodeps] <bundle-name>[;<version>] ...
|
...
obr source
Syntax:
No Format |
---|
obr source [-x] <local-dir> <bundle-name>[;<version>] ...
|
...
The above example retrieves the source archive of version "1.0.0" of the bundle named "Bundle Repository" and saves it to the specified local directory.
obr javadoc
Syntax:
No Format |
---|
obr javadoc [-x] <local-dir> <bundle-name>[;<version>] ...
|
...