在我的项目中,我使用PDE/Build在Hudson的远程服务器上构建我的RCP应用程序。 当前版本是基于Eclipse Galileo的软件包,它既适用于构建器应用程序,也适用于目标平台。如何使用Indigo设置Eclipse PDE/Build?
现在我想升级到Indigo,我需要一些帮助。
首先,解压缩数个拉链形成目标平台的旧方法不起作用。 (我使用了Platform Runtime Binary,Delta pack,PDE Runtime Binary和JDT Runtime Binary - 我提出的一套既可以用作构建器又可以用作目标平台)。
好的,有一个新的目标定义。 我该如何配置它,以便它符合我的伽利略设置? (当然,我不介意它是否更简单/更清洁)。
我试过如下:
- 加入Eclipse RCP的,Eclipse RCP的插件开发人员资源(源),PDE/API工具环境从download.eclipse.org/eclipse/updates/3.7
- 从download.eclipse.org/releases/indigo添加了Eclipse Java开发
- 从download.eclipse.org/eclipse/downloads/drops/R-3.7-201106131736/download.php?dropFile=eclipse-3.7手动下载了delta pack -delta-pack.zip,解压缩并将生成的目录(作为目录)添加到目标定义。 顺便说一下,有没有Indigo delta pack的更新网站?
- 添加从Eclipse的轨道P2现场一对夫妇的第三方插件:download.eclipse.org/tools/orbit/downloads/drops/R20110523182458/repository
然后我用定义的“设置为目标平台“ - 而且我的项目在我的工作空间中可以很好地工作 - 这很好! 然后我将平台导出到。 现在,如果我尝试执行我的生成是这样的:
java -jar <target-platform>\plugins\org.eclipse.equinox.launcher_1.2.0.v20110502.jar -application org.eclipse.ant.core.antRunner -buildfile <target-platform>/plugins/org.eclipse.pde.build_3.7.0.v20110512-1320/scripts/productBuild/productBuild.xml -Dbuilder=<pdebuild-folder>
甚至
java -jar <target-platform>\plugins\org.eclipse.equinox.launcher_1.2.0.v20110502.jar
我收到以下错误:
An error has occurred. See the log file \configuration\1316517334675.log
日志包含以下内容:
!SESSION 2011-09-20 15:15:34.269 eclipse.buildId=unknown java.version=1.7.0 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.osgi 4 0 2011-09-20 15:15:35.175 !MESSAGE Application error !STACK 1 java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini). at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
有点相关:https://bugs.eclipse.org/bugs/show_bug.cgi?id=266311 – vitaly