About OSGiNews and EventsMarkets and SolutionsSpecificationsWork GroupsUsers' ForumsLinksJoin
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]
[-d rootdir ]
[-r repository.xml (.zip ext is ok)]
[-l file:license.html ]
[-ignore ]
[-t http://w.com/servl?s=%s&v=%v %s=symbolic-name
%v=version %p=relative path %f=name]
[-stylesheet http://www.osgi.org/www/obr2html.xsl]
[-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. |
Registration OpenMarch 26 to 29 in Reston, VA, USARead the OSGi Blog ...
OSGi Alliance Restructures Membership, Promotes Broader Technical Participation
Publicly share ideas and information under OSGi Community Wiki
OSGi Alliance Slides AvailableSlides Available
|
||||||||||||||||||
|
Home | Trademark Policy | Privacy Policy Copyright © 2012 OSGi™ Alliance. Comments about the site? Send them to: OSGi Alliance WebMaster. |