How to configure a reader to read from a target platform directory [message #723899] |
Fri, 09 September 2011 20:09 |
Lothar Werzinger Messages: 153 Registered: July 2009 Location: Bay Area |
Senior Member |
|
|
Hi,
I tried in vain so far to come up with a rmap that contains a reader that operates on a target platform that was materialized earlier into a local diretory.
The reason I am trying to do this that I want to create two new target platforms that are subsets of the first one (one for RCP and one for RAP).
I tried the obvious (local reader)
<?xml version="1.0" encoding="UTF-8"?>
<rm:rmap xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0" xmlns:rm="http://www.eclipse.org/buckminster/RMap-1.0">
<rm:locator searchPathRef="local.plugins" failOnError="false"/>
<rm:locator searchPathRef="local.features" failOnError="false"/>
<rm:searchPath name="local.plugins">
<rm:provider componentTypes="osgi.bundle" readerType="local" source="false" mutable="false">
<rm:uri format="file://{0}/tp-full/plugins/{1}">
<bc:propertyRef key="workspace.root"/>
<bc:propertyRef key="buckminster.component"/>
</rm:uri>
</rm:provider>
</rm:searchPath>
<rm:searchPath name="local.features">
<rm:provider componentTypes="eclipse.feature" readerType="local" source="false" mutable="false">
<rm:uri format="file://{0}/tp-full/features/{1}">
<bc:propertyRef key="workspace.root"/>
<bc:propertyRef key="buckminster.component"/>
</rm:uri>
</rm:provider>
</rm:searchPath>
</rm:rmap>
but I get errors
org.eclipse.rcp:eclipse.feature: Using resolver rmap
org.eclipse.rcp:eclipse.feature: Using resolver Local resolver
org.eclipse.rcp:eclipse.feature: Trying provider local(materialized)
No materialization found for org.eclipse.rcp:eclipse.feature
org.eclipse.rcp:eclipse.feature: Trying provider local(workspace)
No open workspace project found that corresponds to org.eclipse.rcp:eclipse.feature
org.eclipse.rcp:eclipse.feature: Trying provider local(target)
org.eclipse.rcp:eclipse.feature: Rejecting provider eclipse.platform(feature/org.eclipse.rcp): No component match was found
org.eclipse.rcp:eclipse.feature: Using resource map file:/workspaces/buckminster-research/biz.tradescape.mmt.targetplatform/tp-full-local.rmap
org.eclipse.rcp:eclipse.feature: Using search path local.plugins
org.eclipse.rcp:eclipse.feature: Trying provider local(file://{0}/tp-full/plugins/{1}[file:///workspaces/buckminster-research/tp-full/plugins/org.eclipse.rcp])
org.eclipse.rcp:eclipse.feature: Rejecting provider local(file://{0}/tp-full/plugins/{1}[file:///workspaces/buckminster-research/tp-full/plugins/org.eclipse.rcp]): Components of type eclipse.feature are not supported
org.eclipse.rcp:eclipse.feature: No provider was found that could resolve the request
org.eclipse.rcp:eclipse.feature: Using search path local.features
org.eclipse.rcp:eclipse.feature: Trying provider local(file://{0}/tp-full/features/{1}[file:///workspaces/buckminster-research/tp-full/features/org.eclipse.rcp])
org.eclipse.rcp:eclipse.feature: Found match
org.eclipse.rcp:eclipse.feature: Using provider local(file://{0}/tp-full/features/{1}[file:///workspaces/buckminster-research/tp-full/features/org.eclipse.rcp])
org.eclipse.rcp:eclipse.feature: Resolution attempt ended with exception: Provider local(file:///workspaces/buckminster-research/tp-full/features/org.eclipse.rcp): Missing CSpec source required by component type eclipse.feature
org.eclipse.rcp:eclipse.feature: No provider was found that could resolve the request
ERROR [0001] : No suitable provider for component org.eclipse.rcp:eclipse.feature was found in resourceMap file:/workspaces/buckminster-research/biz.tradescape.mmt.targetplatform/tp-full-local.rmap
ERROR [0001] : No suitable provider for component org.eclipse.rcp:eclipse.feature was found in searchPath local.plugins
ERROR [0001] : Rejecting provider local(file://{0}/tp-full/plugins/{1}[file:///workspaces/buckminster-research/tp-full/plugins/org.eclipse.rcp]): Components of type eclipse.feature are not supported
ERROR [0001] : No suitable provider for component org.eclipse.rcp:eclipse.feature was found in searchPath local.features
ERROR [0001] : Resolution attempt ended with exception: Provider local(file:///workspaces/buckminster-research/tp-full/features/org.eclipse.rcp): Missing CSpec source required by component type eclipse.feature
ERROR Provider local(file:///workspaces/buckminster-research/tp-full/features/org.eclipse.rcp): Missing CSpec source required by component type eclipse.feature
Errors and Warnings
E [0001] : No suitable provider for component org.eclipse.rcp:eclipse.feature was found in resourceMap file:/workspaces/buckminster-research/biz.tradescape.mmt.targetplatform/tp-full-local.rmap
E [0001] : No suitable provider for component org.eclipse.rcp:eclipse.feature was found in searchPath local.plugins
E [0001] : Rejecting provider local(file://{0}/tp-full/plugins/{1}[file:///workspaces/buckminster-research/tp-full/plugins/org.eclipse.rcp]): Components of type eclipse.feature are not supported
E [0001] : No suitable provider for component org.eclipse.rcp:eclipse.feature was found in searchPath local.features
E [0001] : Resolution attempt ended with exception: Provider local(file:///workspaces/buckminster-research/tp-full/features/org.eclipse.rcp): Missing CSpec source required by component type eclipse.feature: Provider local(file:///workspaces/buckminster-research/tp-full/features/org.eclipse.rcp): Missing CSpec source required by component type eclipse.feature
I also tried a p2 reader, but that one obviously complains that there is no valid p2 repo there (the metadata is missing).
Any help is very much appreciated.
[Updated on: Fri, 09 September 2011 20:12] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04161 seconds