如何让 API 工具在 Eclipse 中工作

发布于 2024-07-25 23:41:30 字数 469 浏览 1 评论 0原文

我一直很难让 API 工具在 Eclipse 3.4.2 中工作。 它不断告诉我:

次要版本应该在版本 3.4.0.qualifier 中增加,因为自版本 3.4.0.40001 以来添加了新的 API 话

虽这么说,我已经从完全相同的代码生成了用于基线的插件它正在被分析。 API 工具文档表示,它将当前代码与基线进行比较,看看是否存在任何差异。 我看不出如果构建版本是从当前代码构建的,会有什么差异。

我测试它的方式:

  1. 创建一个新的 Eclipse 工作区
  2. 创建一个打开 API 分析的新插件项目
  3. 将一个简单的类添加到该插件并导出包含该类的包 将该
  4. 插件构建/导出到您的某个位置硬盘驱动器
  5. 将工作区基线设置为该位置并执行完整构建

您在问题视图中收到项目错误。

谢谢,

-一位非常困惑的用户

I have been having a real hard time getting API Tooling to work in Eclipse 3.4.2. It keeps telling me:

The minor version should be incremented in version 3.4.0.qualifier, since new APIs have been added since version 3.4.0.40001

That being said, I have generated the plugins that are used for the baseline from the exact same code that it is being analyzed against. The API Tools docs say that it compares the current code against the baseline to see if there are any differences. I can't see how there could be differences if the built version is built from the current code.

The way that I tested it:

  1. Create a new eclipse workspace
  2. Create a new Plug-in Project with API Analysis turned on
  3. Add a simple class to that plugin and export the package with that class in it
  4. Build/Export that plugin to some location on your hard drive
  5. Set the workspace baseline to that location and do a full build

You get an error for the project in your problems view.

Thanks,

-One very perplexed user

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

满地尘埃落定 2024-08-01 23:41:30

看起来这个问题在 3.5 中得到了修复。 太糟糕了,我的公司不希望我们使用 3.5,以防出现任何不兼容问题。 (有 3.3 到 3.4)

我对任何想要进行 Eclipse API 分析的人的建议是使用 3.5。

Looks like this is something that got fixed in 3.5. Too bad my company doesn't want us using 3.5 in case there are any incompatibility issues. (there were 3.3 to 3.4)

My recommendation to anyone who wants to do Eclipse API Analysis is to use 3.5.

绿萝 2024-08-01 23:41:30

首先,我很抱歉在线程的“活动时间”之后很晚才跳转到该线程,但我目前正在遇到这种确切的情况,但是使用的是 Eclipse Helios 3.6。

从您的回答中,您注意到 3.5 中修复了某些问题。 您是否知道这个确切的修复是什么,并且您是否还能够验证它是否在 Eclipse Helios 3.6 下工作?

我真的很想让 PDE API 工具正常工作,但我已经接近完成这项工作的时间了,需要继续处理一些待处理的任务。

谢谢!

编辑:我本想将其发布在后续链接中,但没有看到任何可用的此类链接。

First off, I apologize for jumping on a thread late after its "active time" but I am currently running into this exact situation, but with Eclipse Helios 3.6.

From your answer, you noted that something was fixed in 3.5. Are you aware of what this exact fix was AND if you have yet been able to verify that it is working under Eclipse Helios 3.6?

I would really like to have PDE API tooling working but I'm nearing my time allowed on this effort and need to move forward onto some pending tasks.

Thanks!

EDIT: I would have posted this in a followup link but did not see any such links available.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文