在观看了网络研讨会、浏览了RCP并学习了Eclipse RCP构建教程之后,我仍然不知道如何将一个简单的BuckyBook插件项目从CVS实现到eclipse工作区中。
谁有一个简单的项目工作区的CQUERY和RMAP文件的例子?
发布于 2010-03-04 17:47:34
这其实很简单。
下面是一个CSPEC示例:
<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="example-site.rmap">
<cq:rootRequest name="example-site" componentType="eclipse.feature"/>
</cq:componentQuery>注意:根请求名称属性指向一个组件。如果你有一个RCP应用程序,它有一个主包(比如你的应用程序的启动点),那么你可以使用上面的name属性指向这个组件。然后,此CSPEC将使用下面的RMAP,使用搜索路径、提供程序等下载所有相关组件。
RMAP:
<searchPath name="default">
<provider
readerType="cvs"
componentTypes="osgi.bundle,eclipse.feature"
source="true"
mutable="true">
<uri format=":pserver:anon@cvs.local:/opt/data/cvsroot,{0}/">
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>
<searchPath name="galileo">
<provider readerType="eclipse.import" componentTypes="osgi.bundle,eclipse.feature"
mutable="false" source="false">
<uri format="http://download.eclipse.org/releases/galileo?importType=binary"/>
</provider>
</searchPath>
<locator searchPathRef="default" pattern="^example\-.*" />
<locator searchPathRef="galileo" failOnError="false" />
https://stackoverflow.com/questions/2243578
复制相似问题