Exception: No enum const [message #27293] |
Fri, 07 November 2008 14:46 |
Eclipse User |
|
|
|
Originally posted by: erdal.karaca.airbus.com
I think this happens when buckminster tries to resolve plugins from target
platform...
If I execute a cquery which does not depend on the target platform's
plugins this will not happen.
I am using the "latest" publication of buckminster (from buckminster
update site)
Stack Trace:
java.lang.IllegalArgumentException: No enum const class
org.eclipse.buckminster.pde.internal.EclipsePlatformVersionF inder$InstalledType.PLUGINS
at java.lang.Enum.valueOf(Unknown Source)
at
org.eclipse.buckminster.pde.internal.EclipsePlatformVersionF inder$InstalledType.valueOf(EclipsePlatformVersionFinder.jav a:1)
at
org.eclipse.buckminster.pde.internal.EclipsePlatformVersionF inder. <init>(EclipsePlatformVersionFinder.java:50)
at
org.eclipse.buckminster.pde.internal.EclipsePlatformReaderTy pe.getVersionFinder(EclipsePlatformReaderType.java:312)
at
org.eclipse.buckminster.core.rmap.model.Provider.findMatch(P rovider.java:218)
at
org.eclipse.buckminster.core.rmap.model.SearchPath.getProvid er(SearchPath.java:104)
at
org.eclipse.buckminster.core.rmap.model.ResourceMap.resolve( ResourceMap.java:173)
at
org.eclipse.buckminster.core.resolver.ResourceMapResolver.in nerResolve(ResourceMapResolver.java:251)
at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.re solve(ResolverNodeWithJob.java:218)
at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.ru n(ResolverNodeWithJob.java:95)
at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob$No deResolutionJob.run(ResolverNodeWithJob.java:50)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
|
|
|
Re: Exception: No enum const [message #27734 is a reply to message #27293] |
Fri, 07 November 2008 14:50 |
Eclipse User |
|
|
|
Originally posted by: erdal.karaca.airbus.com
this is my rmap:
-%snip----------------------------------
... some other searchPaths which depend on target platform's plugins...
<searchPath name="tp">
<provider readerType="eclipse.platform"
componentTypes="eclipse.feature,osgi.bundle,buckminster" source="true"
mutable="false">
<uri format="plugins/{0}">
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>
... locators of other searchPaths...
<locator searchPathRef="tp" pattern=".*" />
-%snip----------------------------------
|
|
|
Re: Exception: No enum const [message #27753 is a reply to message #27734] |
Fri, 07 November 2008 15:18 |
|
Hi Erdal,
You are not supposed to use the eclipse.platform reader type in the rmap. It's for
internal use only. The target platform will be consulted by default when resolving
components unless you explicitly disable it in a CQUERY advisor node.
Regards,
Thomas Hallgren
Erdal Karaca wrote:
> this is my rmap:
>
> -%snip----------------------------------
> .. some other searchPaths which depend on target platform's plugins...
>
> <searchPath name="tp">
> <provider readerType="eclipse.platform"
> componentTypes="eclipse.feature,osgi.bundle,buckminster"
> source="true"
> mutable="false">
> <uri format="plugins/{0}">
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> </searchPath>
>
>
> .. locators of other searchPaths...
> <locator searchPathRef="tp" pattern=".*" />
> -%snip----------------------------------
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03944 seconds