0

I am developing a collection of plugins on Eclipse 3.4 (official) on both mac and a PC.

At present (I'm aware it is not the best practice) some of my common plugins export all of their packages.

The problem is this: many of the listed packages are empty because subpackages are not, for example: prefix.core may be empty while prefix.core.model may not be.

Even though I use the same manifest file, having the empty packages listed on one platform raises an error in the manifest file on the other platform. If I omit the packages in that platform, then when I come to the other platform I'm told that the plugin does not export everything.

Any idea what is going on? I have no idea why there would be differences between the PC and the Mac on a non-UI related issue. The only significant difference is that the mac is running Java 5 (still not Eclipse for Java 6) while the PC is running Java 6, but the manifests should have nothing to do with it.

4

2 回答 2

1

如果您要跨多台机器和平台开发插件,那么使用相同版本的 JVM 通常是一个好习惯。

如果您要在 PC 上构建插件并希望它们在 Mac 上运行,您应该在 Java 5 上进行标准化。您可以通过转到 Window->Preferences->Installed JREs 轻松安装和添加额外的 JRE 到 Eclipse。如果您不希望 PC Java 编码的其余部分使用 5,您甚至可以配置每个项目和启动配置使用的 JRE。

如果这也解决了您的清单问题,我不会感到惊讶。

于 2008-10-13T19:19:29.420 回答
0

问题可能是插件开发首选项中设置的错误/警告级别。可能是您在两台机器上都有不同的设置,这会产生问题。

在 Preferences -> Plug-in Development -> Compilers 下,有几个关于不同问题的错误和警告级别的选项,例如对不存在的资源的引用。您可能会发现有什么不同吗?

于 2008-10-14T15:03:15.053 回答