You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Brodie <br...@gmail.com> on 2010/01/18 03:59:44 UTC

A jar repository bundle is needed!

i post this message before, 
http://old.nabble.com/Is-a-jar-repository-necessary--td26108642.html#a26108642
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. 

the jar repository is a bundle, it holds all dependency of other bundles, it
manages dependency centrally, like linux manages its library, not like
windows. and i think in this way it would be easy to connect to Maven too,
use maven's repository.

here, is a simple implementation, 
http://app4j.googlecode.com/files/app4j-jar-repository-2.0.1-package.jar
http://app4j.googlecode.com/files/app4j-jar-repository-2.0.1-package.jar 
doc is here,  http://code.google.com/p/app4j/wiki/JarRepository
http://code.google.com/p/app4j/wiki/JarRepository 

in face, if Felix add the feature, it is very easy. so i sincerely hope you
guys consider about it.


-- 
View this message in context: http://old.nabble.com/A-jar-repository-bundle-is-needed%21-tp27205645p27205645.html
Sent from the Apache Felix - Dev mailing list archive at Nabble.com.


Re: A jar repository bundle is needed!

Posted by Stuart McCulloch <mc...@gmail.com>.
2010/1/18 Marcel Offermans <ma...@luminis.nl>

> 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

Re: A jar repository bundle is needed!

Posted by Marcel Offermans <ma...@luminis.nl>.
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.

Greetings, Marcel