在命令行上构建 Eclipse 插件和功能

发布于 2024-07-05 08:04:12 字数 200 浏览 8 评论 0原文

我有一堆 Eclipse 插件和功能,我想将它们构建为夜间(无头)构建的一部分。 我已经设法使用复杂的设置来完成此操作,包括手动指定 Eclipse 插件 jar 的路径、复制 customTargets.xml 等。

真的没有更简单的解决方案吗? 有没有办法只指出我的更新站点的 site.xml 并说“构建”? 即相当于在更新站点项目中单击“构建全部”?

I have a bunch of Eclipse plugins and features, which I would like to build as part of a nightly (headless) build. I've managed to do this using a complicated setup involving manually specifying paths to Eclipse plugin jars, copying customTargets.xml, etc.

Is there really no simpler solution? Isn't there a way to just point out my Update Site's site.xml and say "build"; i.e. the equivalent of clicking "Build All" in the Update Site project?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

独木成林 2024-07-12 08:04:12

考虑到这个问题的所有答案都是 3-5 年前的,我认为更新对其他人来说会很有用。

对于那些想要将 Eclipse 插件的构建添加到 CI 流程中的人,我建议他们查看 Eclipse Tycho 项目。 这本质上是一个 Maven 插件,允许您将 Eclipse 项目包装在 Maven 项目中。 这样我们就可以使用 Atlassian Bamboo 来构建我们的 Eclipse 插件。 这也允许我们使用 Maven jarsigner 插件来签署我们的插件文件。

Given that all the answers to this question are all 3-5 years old, I figure an update would be useful to others.

For those who want to add the building of Eclipse plugins to the CI process, I recommend they check out the Eclipse Tycho project. This is essentially a Maven plugin that allows you you to wrap eclipse projects within Maven project. With this we use Atlassian Bamboo to build our Eclipse plugin. This also allows us to use the Maven jarsigner plugin to sign our plugin files.

无名指的心愿 2024-07-12 08:04:12

查看 Ant4Eclipse。 我用它来解析 Eclipse 的 .classpath/.project 文件以确定项目依赖项和类路径。 结合 Groovy Ant Task,我已经使用 Ant 在 Ant 中自动构建了多个项目用于构建信息的 Eclipse 项目文件。

存在 buildPlugin 任务,但我个人没有使用过它。

Check out Ant4Eclipse. I've used it to parse Eclipse's .classpath/.project files to determine project dependencies and classpaths. In combination with Groovy Ant Task, I have automatically built multiple projects in Ant using the Eclipse project files for build information.

A buildPlugin task exists, but I have not personally used it.

爱殇璃 2024-07-12 08:04:12

我自己也一直在与这个问题作斗争。 您使用的是productBuild 脚本吗? 也许将您的功能放入产品中会对您有所帮助。

我正在对产品配置进行无头构建。 我定制的唯一脚本是向 customTargets.xml 添加一些 ant 任务,以从 SVN 获取源代码,并在构建后对 JNLP 清单进行一些清理,因为我正在使用 WebStart。

然后,您只需在scripts/productBuild 目录(在pde-build 插件中)中的开箱即用的productBuild.xml 上调用antRunner。

I've just been fighting with this problem myself. Are you using the productBuild script? Maybe putting your features into a product would help you out.

I am doing a headless build on a product configuration. The only script that I customized was to add some ant tasks to customTargets.xml to get my sources from SVN and to do a little cleanup on JNLP manifests after the build as I am using WebStart.

Then you only need to invoke antRunner on the out of the box productBuild.xml in the scripts/productBuild directory (in the pde-build plugin).

甜妞爱困 2024-07-12 08:04:12

我们目前正在使用 PDE 自动构建功能和完整的产品。 它运作得很好。 确保使用正确的脚本进行产品构建或功能构建。
有关使用 PDE 的 Eclipse 帮助

编辑:我们现在已迁移到 Buckminster,它具有出色的命令行界面。

We are currently using PDE to automatically build features and our complete product. It works quite well. Make sure you use the right script for product build or feature build.
Eclipse Help on using PDE

EDIT: We've now migrated to Buckminster, which has an excellent command line interface.

屋檐 2024-07-12 08:04:12

您可能会研究巴克明斯特和马文。 当然有一个学习曲线,但他们似乎做得很好。

You might look into buckminster and maven. There is a learning curve for sure, but they seem to do their jobs well.

仅冇旳回忆 2024-07-12 08:04:12

我们使用的是 headlesseclipse,可以在 Google 代码上找到它:

http://code.google.com/ p/headlesseclipse/

它工作得很好,并且可以轻松地自动化命令行构建插件和功能。 但是,我还没有找到通过命令行自动构建更新站点的方法。

We are using headlesseclipse, which can be found on Google Code:

http://code.google.com/p/headlesseclipse/

It works quite well, and can easily automate command-line building of plugins and features. However, I have not yet found a way to automate building of the update site via the command line.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文