From: Stephane F. <ste...@in...> - 2004-05-05 21:07:49
|
On Wed, May 05, 2004 at 09:10:31PM +0200, Richard S. Hall wrote: > As I mentioned previously, I am separating the bundles from Oscar and=20 > OBR will become the official way to get bundle source code and the=20 > existing Oscar web site will become a bundle repository site. >=20 > This raises the question of how should bundle source code be packaged. = I=20 > see at least three alternatives: >=20 > 1. Completely self-contained with everything it needs to compile with > build file. > 2. Containing only the bundle source code with build file and the > assumption that you will get needed libraries elsewhere (i.e., > osgi.jar, osgi-service.jar, osgi-util.jar, servlet.jar). > 3. Containing only the bundle source code with build file that > assumes it is installed into the Oscar install directory so that > it can find needed libraries in the lib/ directory. >=20 > Personally, I like the first alternative, even if it means that each=20 > bundle includes its own copy of osgi.jar (for example). Somehow it is=20 > cleaner to have them self-contained and it makes it easier to use them=20 > not only with Oscar. I'm not sure its an issue.=20 Each bundle provider should have its own policy.=20 The first one is more independant of oscar evolution (version modification), whereas the third relies on current releases, and should fail to compile on different oscar releases. One issue I can't see is the sources packaging model... - jar/tar/zip ? (jar is cool but generates META-INF directory with jar tool, or you use your inner unjarrer) Do you rely on a standard build.xml skeleton ? (clean/compile/bundles) Do you extract sources inside oscar install ? So you need some kinds of bundle/package/services namespaces. Initial namespaces were provided by both osgi and you, but what will appened when billion of bundles will be available :) ? Il like the gentoo portage tree (or freebsd port) which should be reproduced. /stephane --=20 Stephane Frenot - Associate professor CITI/ARES - INSA lyon - Bat. L=E9onard de Vinci 20, av. A. Einstein - 69621 Villeurbanne Cedex Email: mailto:ste...@in... Web : http://ares.insa-lyon.fr/~sfrenot/ ICQ : 643346 (et oui !) Tel : +33 472 436 422 / +33 617 671 714 ----------------------------------------------------------------- |