Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Export-Package
Export-Package [message #606454] Wed, 11 August 2010 04:37 Go to next message
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 18
Registered: August 2010
Junior Member
Hi,

Does not PDE support the "exclude" directive in Export-Package header?

I created two plug-ins, say A and B, and create two classes (say, services.ServiceInA.java and services.NonServiceInA.java) in A and a class (say, ClientInB.java) in B. I also exported the pakage services of A and specified as below:
Export-Package: services; exclude:=NonServiceInA

When I import the services pakage in B, I can also see the NonServiceInA class, but it shoud not be that according to the OSGi specification, Does anybody know?

Best regards.

Robin
Re: Export-Package [message #606465 is a reply to message #606454] Fri, 13 August 2010 15:50 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The access rules that PDE provides to the compiler are at the package level.
I don't think the JDT compiler supports excluding individual classes. I
believe that the JDT is the one providing all the code completion and
visibility errors/warnings.

So even if it looks fine in the editor and compiles, I would expect it to
not work at runtime assuming the exclude is correct (I didn't realize you
could do that).

-Andrew
zjg_robin wrote:

> Hi,
>
> Does not PDE support the "exclude" directive in Export-Package header?
>
> I created two plug-ins, say A and B, and create two classes (say,
> services.ServiceInA.java and services.NonServiceInA.java) in A and a class
> (say, ClientInB.java) in B. I also exported the pakage services of A and
> specified as below: Export-Package: services; exclude:=NonServiceInA
>
> When I import the services pakage in B, I can also see the NonServiceInA
> class, but it shoud not be that according to the OSGi specification, Does
> anybody know?
>
> Best regards.
>
> Robin
Previous Topic:syntax highlighting
Next Topic:Plugin Deployment Failed
Goto Forum:
  


Current Time: Sat Apr 20 04:07:05 GMT 2024

Powered by FUDForum. Page generated in 0.03401 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top