Anyway, I found a way to remove such need by using the
tuscany-extensibility-equinox (which doesn't contain any META-INF/services)
bundle as the bridge. See the changes at:
http://svn.apache.org/viewvc?rev=799679&view=rev
Thanks,
Raymond
--------------------------------------------------
From: "Raymond Feng" <[email protected]>
Sent: Friday, July 31, 2009 8:09 AM
To: <[email protected]>
Subject: Re: svn commit: r799510 - in /tuscany/java/sca/modules:
binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/
contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/
extensibility-equinox/META-INF/ extensibility/ME
Hi,
This is an OSGi trick to make sure this bundle only sees its own
META-INF/services resources. The tuscany-extensibility bundle has
DynamicImport-Package: * header.
1) Adding META-INF.services to its Export-Package header will prevent the
DynamicImport-Package to be used for searching META-INF/services/*.
2) "internal=true;mandatory:=internal" means this exported package can
only be imported using the mandatory attribute "internal" to be set
to true (for example, Import-Package: META-INF.services;internal=true). So
it prevents other bundles from seeing this package as they don't use the
"internal=true".
I don't see error markers in Eclipse though. Can you try to reset the
target platform and post the error message?
Thanks,
Raymond
--------------------------------------------------
From: "Simon Laws" <[email protected]>
Sent: Friday, July 31, 2009 3:14 AM
To: <[email protected]>
Subject: Re: svn commit: r799510 - in /tuscany/java/sca/modules:
binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/
contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/
extensibility-equinox/META-INF/ extensibility/ME
Don't really know what any of this is for (can you explain a bit more)
but the addition of
+ ;version="2.0.0",META-INF.services;internal=true;mandatory:=internal
to tuscany/java/sca/modules/extensibility/META-INF/MANIFEST.MF lights
up as a red cross when I load into Eclipse. Have removed it locally so
let me know if you want me to check the change it.
Simon