addLocalRepositoryBundle command

Use the addLocalRepositoryBundle command to add a bundle, composite bundle or grouped-up set of bundles to the internal bundle repository that is included in the product.

To run the command, use the AdminTask object of the wsadmin scripting client.

Command-line help is provided:
  • For a list of the available OSGi Applications commands in Jython and a brief description of each command, enter the following command at the wsadmin prompt:

    print AdminTask.help('OSGiApplicationCommands')

  • For overview help on a given command, enter the following command at the wsadmin prompt:

    print AdminTask.help('command_name')

After using the command, save your changes to the configuration repository by using the following command:

AdminConfig.save()

Purpose

This command adds a bundle, a composite bundle or a grouped-up set of bundles to the internal bundle repository.

You can install bundles singly, or you can install a set of bundles packaged as a compressed archive file with a .zip file extension. In both cases, the bundles are available individually in the repository. If you install a composite bundle in a bundle repository, and the composite bundle includes bundles by reference, you must ensure that the referenced bundles are also available in the same repository. If you use the internal bundle repository, and the composite bundle directly contains bundles, the contained bundles are not listed separately and are only available as part of the composite bundle. For more information, see Composite bundles.

Target object

None

Required parameters

-file path
The path and file name of a compressed archive file that has a .jar, .cba or .zip file extension and is available on the server file system.
Each individual bundle must be packaged as a .jar file, and must contain a suitably-configured bundle manifest file. Each composite bundle must be packaged as a compressed archive file with a .cba file extension, and must contain a suitably-configured composite bundle manifest file. Each grouped-up set of bundles must be packaged as a compressed archive file with a .zip file extension.

Conditional parameters

None.

Optional parameters

None.

Example

AdminTask.addLocalRepositoryBundle('-file path')