|
||||||||||||||
| Repository | / | BIndex | ||||||||||||
|
Creating a Bundle Repository with BIndex
The BIndex program is a small Java progam that implements the manifest header to repository format mapping as described in RFC-0112 Bundle Repository. BIndex can recurse over a directory structure and just creates a repository.xml file. The URLs can be rewritten using a template. The program is a command line program that can easily be integrated in scripts. It is a JAR file with a Main-Class manifest. It therefore supports the following basic syntax: java -jar bindex.jar
[-help]
[-r repository.xml (.zip ext is ok)]
[-l file:license.html ]
[-t http://w.com/servl?s=%s&v=%v %s=symbolic-name
%v=version %p=relative path %f=name]
[-q (quiet) ]
<jar file>*
For example, to index all bundles that reside in the bundles directory: java -jar bindex.jar bundles/*.jar
Source CodeThe Bindex program is now available as open source. You can check out the project with SVN, use org.osgi.impl.bundle.bindex. Please provide any to improve this project. If you have created an XML repository file, do not hesitate to share it with us so we can link it into OBR. |
|||||||||||||