Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Export-Package constraints problem(Export-Package)
Export-Package constraints problem [message #552156] Wed, 11 August 2010 06:39 Go to next message
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 18
Registered: August 2010
Junior Member
Hi,

Does not PDE/Equinox 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 in B, but it shoud not be that according to the OSGi specification, Does anybody know?

Best regards.

[Updated on: Wed, 11 August 2010 06:41]

Report message to a moderator

Re: Export-Package constraints problem [message #552251 is a reply to message #552156] Wed, 11 August 2010 12:57 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
The Equinox runtime should support the exclude directive. If not please open a bug against Equinox with a testcase. If you are talking about PDE and development time visibility this is PDE bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=120973.

Tom.
Re: Export-Package constraints problem [message #552259 is a reply to message #552251] Wed, 11 August 2010 13:15 Go to previous messageGo to next message
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 18
Registered: August 2010
Junior Member
Thank you, Tom.

By the way, do you know when this problem will be corrected? (I'm using Eclipse 3.6).

Best regards.

Robin.
Re: Export-Package constraints problem [message #552261 is a reply to message #552259] Wed, 11 August 2010 13:30 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
No I don't. I suggest you post a comment on the bug report to ping the PDE team about this.
Re: Export-Package constraints problem [message #552269 is a reply to message #552261] Wed, 11 August 2010 13:58 Go to previous messageGo to next message
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 18
Registered: August 2010
Junior Member
I did, but got a nagtive reply. Sad

Robin
Re: Export-Package constraints problem [message #552327 is a reply to message #552269] Wed, 11 August 2010 17:55 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Am 11.08.2010 15:58, schrieb zjg_robin:
> I did, but got a nagtive reply. :(

I wouldn't consider the reply negative. They are interested in a patch.
That's a positive sign.

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Previous Topic:Exporting only subclass package
Next Topic:New dependency of p2 SDK?
Goto Forum:
  


Current Time: Fri Mar 29 10:32:03 GMT 2024

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

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

Back to the top