使用 Ant 导出 Eclipse RCP 产品

标签 eclipse ant eclipse-rcp

我正在寻找一种使用 ant 导出 Eclipse RCP 产品的方法,我找不到直接的方法来实现此目的(当然在搜索网络以及我们的论坛之后)。

我发现与我的问题更相关的链接是“http://stackoverflow.com/questions/9098378/how-to-build-eclipse-rcp-application-from-product-with-ant-on -jenkins”,但这并没有说明 ant 的使用。还有一个指南“http://www.vogella.com/articles/EclipsePDEBuild/article.html”,但即使在尝试之后,我也无法成功使用 Ant ni 导出 Eclipse 产品。

任何帮助/指示将不胜感激。

最佳答案

您需要 PDE 版本(基于 ant),如 http://www.vogella.com/articles/EclipsePDEBuild/article.html 中列出。 。这是正确的查看位置,它对您的设置没有起到什么作用?

另请参阅http://pweclipse.blogspot.com/2010/09/simple-rcp-product-build.html有关基本 RCP 产品构建的示例。虽然它是基于 ant 的,但您仍然必须使用 eclipse 来运行它:

eclipse/eclipse -application org.eclipse.ant.core.antRunner \
 -buildfile eclipse/plugins/org.eclipse.pde.build_3.6.0.v20100603/scripts/productBuild/productBuild.xml \
 -Dbuilder=/opt/local/rcp/builder  \
 -Dbase=/opt/local/rcp/base \
 -Dtimestamp=20100924-1100

关于使用 Ant 导出 Eclipse RCP 产品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11112769/

相关文章:

java - 在导出的 JAR 中进行编码

android - 自定义部分 Android Manifest

java - eclipse 3.5 : Implementing my own context menu for a MultipageEditorPart --> no viewer involved

java - 以编程方式加载 Eclipse RCP 4 默认透视图

java - 奇怪的错误,我认为它与eclipse有关

android - 在 Eclipse MAT 中,类(class)末尾的美元符号是什么意思?

eclipse - 将条件断点与 instanceof 一起使用时出错。是我还是 eclipse ?

java - 在 Eclipse m2e 中,如何引用工作空间项目?

java - 自动从 .java 文件、脚本中删除代码行

java - 让 Image 任务在 Ant 中工作