如何覆盖 Buckminster RMAP 文件中 svn uri 的组件名称
我正在尝试从头开始将 RCP 应用程序具体化到工作区中,但我在使用一个组件时遇到了麻烦,该组件在 SVN 中的项目名称与其插件 ID 不同(例如,它是 Bundle-SymbolicName)。
此时我确实无法通过重命名项目或捆绑包 ID 来解决此问题,因此我正在寻找一种方法来简单地将组件名称替换为提供程序 uri 声明内的 svn 项目名称。
我尝试使用替换标签,但它似乎没有帮助:
<provider readerType="svn" componentTypes="eclipse.feature,osgi.bundle" source="true">
<uri format="https://svnserver/svn/trunk/project/{0}?moduleAfterTag&moduleAfterBranch">
<bc:replace>
<bc:propertyRef key="buckminster.component" />
<bc:match pattern="^com\.initec\.richedit(?:\.\w+)*$"
replacement="com.initec.richtext$1" />
</bc:replace>
</uri>
</provider>
顺便说一句 - I am using Buckminster 1.1.350.r10382 in Eclipse 3.5
I am trying to materialize an RCP application into a workspace from scratch and I am having trouble with one single component whose project name in SVN is not same as it's plug-in id (e.g. it's Bundle-SymbolicName).
At this point in time I really can not fix this issue by either renaming the project or bundle id, so I am looking for a way to simply replace component name with it's svn project name just inside the provider uri declaration.
I've tried to use the replace tag, but it does not seem to help:
<provider readerType="svn" componentTypes="eclipse.feature,osgi.bundle" source="true">
<uri format="https://svnserver/svn/trunk/project/{0}?moduleAfterTag&moduleAfterBranch">
<bc:replace>
<bc:propertyRef key="buckminster.component" />
<bc:match pattern="^com\.initec\.richedit(?:\.\w+)*$"
replacement="com.initec.richtext$1" />
</bc:replace>
</uri>
</provider>
BTW - I am using Buckminster 1.1.350.r10382 in Eclipse 3.5
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的正则表达式看起来是问题所在。
(?:X)
是非捕获组,因此$1
将不会被定义。我会建议:
Your regular expression looks to be the problem.
(?:X)
is a non-capturing group, so the$1
will not be defined.I would suggest: