Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] BBAPI source code repository.

Hi Erkki,

Erkki Lindpere wrote:
Hmm... I just checked out the whole project-set and I get a lot of
errors that classes in:
org.eclipse.ecf.core.util are not resolved. I think this is exactly
because two bundles are exporting the same package and Import-Package
will resolve to only one of them I think (I'm using 3.3M3 if that
makes a difference).

I just want to make sure...I just loaded in the attached project set file (in 3.3M3) and it loaded in and everything compiled just fine.

But you are talking about other plugin references using Import-Package rather than Require-Bundle for org.eclipse.ecf.core.util...right?

I suppose the answer to this case is to use Require-Bundle for org.eclipse.ecf, and that does the magic about including all referred classes in org.eclipse.ecf.core.util.

So perhaps it's not a good idea to use Import-Package everywhere? It
also makes it a pain when packages change and I think dependency
management becomes too granular. I've personally used Import-Package
when declaring dependencies on external libraries or on packages that
might be bundled differently depending on situation. Or when trying to
keep dependencies to a minimum. But when I know very well which bundle
should provide the packages, I usually use Require-Bundle. But I know
Peter Kriens from OSGi for example doesn't like Require-Bundle at all.

Maybe we could ask for advice from the Equinox team?

I think that's a good idea. Send to equinox-dev@xxxxxxxxxxx or to newsgroup. If you could copy me that would be great.

RE: Peter are proabably referring to this:

Thanks Erkki,


On 11/6/06, Scott Lewis <slewis@xxxxxxxxxxxxx> wrote:
Hi Erkki,


BTW...over the weekend I moved all the core plugins to use
Import-Package rather than Require-Bundle.  Among the new set of core
plugins there is now only *one* Require-Bundle...that's org.eclipse.ecf
requiring org.eclipse.ecf.identity.  The reason  I left that one is that
org.eclipse.ecf.identity and org.eclipse.ecf both contribute code to a
single package (org.eclipse.ecf.core.util), and so Require-Bundle is needed.


Erkki Lindpere wrote:
> During the ECF call, Scott asked where the BBAPI source code can be
> accessed. It is available here:
> _______________________________________________
> ecf-dev mailing list
> ecf-dev@xxxxxxxxxxx

ecf-dev mailing list

ecf-dev mailing list

Back to the top