我目前正在尝试让我的无头 pde 构建工作,但我陷入了一个我不知道如何继续的点。
问题是如何定义相关的目标平台来编译插件。
我有一个包含以下调用的 build.bat(全部在一行中!):
java -jar D:\target\eclipse\plugins\org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-application org.eclipse.ant.core.antRunner
-f D:\target\eclipse\plugins\org.eclipse.pde.build_3.5.2.R35x_20100114\scripts\productBuild\productBuild.xml
-Dbuilder=c:\pde-build\scripts %*
我尝试从不同部分创建目标 eclipse 平台:所有组合中的 eclipse SDK、RCP SDK、Delta Pack、PDE-SDK,但它们都运行良好。
我收到以下错误:
BUILD FAILED
D:\target\eclipse\plugins\org.eclipse.pde.build_3.5.2.R35x_20100114\scripts\productBuild\productBuild.xml:18: Cannot fin
d ${eclipse.pdebuild.scripts}/build.xml imported from D:\target\eclipse\plugins\org.eclipse.pde.build_3.5.2.R35x_2010011
4\scripts\productBuild\productBuild.xml
其中变量 ${eclipse.pdebuild.scripts} 未得到解析。我还尝试通过命令行提供此参数,但随后我收到了另一个关于缺少 svn 任务的错误,这绝对令人困惑,因为这是与我引用的本地 eclipse 安装一起使用的。
当我将 d:/target/eclipse 的路径替换为本地 Eclipse 安装时,pde 构建按预期工作!
这导致我的目标 Eclipse 的配置不正确,但目前我不知道如何配置它!
我的目标是首先在我的本地站点上自动构建 pde,而不引用我的本地 eclipse,然后将此构建过程集成到我们正在运行的 Cruisecontrol 实例中。
正如我已经看到的另一个关于定义目标日食的问题,如果有人能够提供有关该问题的提示或事实,我会很高兴。
问候,
安德烈亚斯
执行无头构建时,目标可以与实际运行构建本身的 Eclipse 分开。您在这里遇到的问题是您用来运行构建的 eclipse 没有正确安装 PDE/Build。
这就是为什么${eclipse.pdebuild.scripts}
未设置,因为 PDE/Build 未安装到该 eclipse 实例中,org.eclipse.pde.build 捆绑包未解析,并且设置此属性的代码从未被调用。同样,PDE/Build 任务所需的 ant 类路径条目也不会正确设置。
您需要安装有 PDE 的 Eclipse 来运行构建,但构建的目标可以与此分开。
In the build.properties
下找到的文件-Dbuilder=c:\pde-build\scripts
你可以设置几个特性 http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.pde.doc.user/reference/pde_builder_config.htm:
-
baseLocation
这是通往您目标日食的路径。
-
buildDirectory
这是构建实际发生的地方,源代码被提取到plugins/和features/子文件夹中,但如果这里已经有二进制插件,那么它们也将成为目标的一部分。
-
pluginPath
This is a list of paths (separated with ';' on windows or ':' on linux) containing other locations that should be considered as part of your target. These locations can be several things:
- 类似 Eclipse 安装的根目录,包含 plugins/ 和 features/ 子文件夹。这是提供 delta-pack 的好方法,而不是仅仅将其解压缩到 Eclipse 安装之上。
- 类似工作区的文件夹的根,其中所有子文件夹都被视为插件或功能,具体取决于是否存在清单或 feature.xml。
- 捆绑包或功能的根,或捆绑包的 jar。
- 如果您正在进行 p2 构建(p2.gathering = true http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_p2_builds.htm)您还可以在 a 下提供 p2 存储库
${repoBaseLocation}
它将被转换并放置在${transformedRepoLocation}
并将成为您目标的一部分,并且那里的 p2 元数据将获得reused http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_p2_reusingmetadata.htm在构建期间。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)