如何覆盖 Buckminster RMAP 文件中 svn uri 的组件名称

发布于 2024-07-26 07:44:14 字数 772 浏览 1 评论 0原文

我正在尝试从头开始将 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&amp;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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清风不识月 2024-08-02 07:44:14

您的正则表达式看起来是问题所在。

(?:X) 是非捕获组,因此 $1 将不会被定义。

我会建议:

<bc:match pattern="^com\.initec\.richedit((?:.\w+)*)$"
          replacement="com.initec.richtext$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:

<bc:match pattern="^com\.initec\.richedit((?:.\w+)*)$"
          replacement="com.initec.richtext$1" />
帅哥哥的热头脑 2024-08-02 07:44:14
pattern="^com\.initec\.richedit(\.\w+)*$"
pattern="^com\.initec\.richedit(\.\w+)*$"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文