我正在寻找一种使用 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/