2010/1/18 Marcel Offermans <[email protected]> > On Jan 18, 2010, at 3:59 , Brodie wrote: > > > i post this message before, > > > http://old.nabble.com/Is-a-jar-repository-necessary--td26108642.html#a26108642 > > > > at that time, i don't know about BND, after some investigation, and i > find > > BND is not what i am talking about, i mean more like specify a classpath > > folder for Felix. > > So basically you want to be able to specify a folder containing jar files > whose contents should be exported through the system bundle? > > If so, then you should be able to create your own launcher for Felix and, > because of the new launching API, you should be able to create a launcher > that can be used with all current framework implementations. >
btw, there's an example of the new launching API here: http://code.google.com/p/osgi-in-action/source/browse/trunk/launcher/src/launcher/Main.java this basic launcher installs bundles from a directory and does some bootstrapping if it finds one with a Main-Class header ( note: if you're using Java6 or above you can replace the "getFrameworkFactory" method with a call to j.u.ServiceLoader ) Greetings, Marcel > -- Cheers, Stuart
