Eclipse:无头PDE构建所需的最小Eclipse安装是什么? [英] Eclipse: What is the minimum Eclipse installation needed for a headless PDE build?

查看:157
本文介绍了Eclipse:无头PDE构建所需的最小Eclipse安装是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用PDE构建无头模式来构建我的OSGI Bundle项目。
PDE Antrunner任务使用Eclipse安装,我只是指向我的本地Eclipse安装。

I am currently using PDE build in headless mode to build my OSGI Bundle project. The PDE Antrunner task uses an Eclipse installation and I am just pointing it to my local Eclipse installation.

不幸的是,我的eclipse安装大约是260MB,但是假设PDE构建不需要在标准eclipse安装中的所有这些插件。

unfortunatelly my eclipse installation is about 260MB big, but I assume that a PDE build does NOT require all of those plugins in a standard eclipse installation.

现在有人现在要做无头PDE所需的最小插件列表是什么建立?
我实际上在自定义目标平台文件夹中的所有依赖项,所以我想我从eclipse安装中需要的唯一的事情是PDE构建实际需要的依赖关系。但那是什么?
我可以将我的安装缩小到最低限度吗?

Does anyone now what is the minimum list of plugins I need for doing a headless PDE build? All of my dependencies I actually have in a custom target platform folder, so I guess the only thing I need from my eclipse installation are the dependencies which PDE build actually needs. But what are those? Can I shrink my installation to a very minimum?

我的目标是也将这个build-eclipse文件夹登录到我的项目的SVN中,以便当你检查出来,你有一切你需要开始一个完整的构建,而不用任何build.properties。但是如果我可能只需要20MB的话,我不想提交266MB的eclipse。

My goal is to also check-in this "build-eclipse" folder into my project's SVN so that when you check it out, you have everything you need to start a full build, without touching any build.properties. But I don't want to commit 266MB of eclipse if I maybe need only 20MB of it.

感谢
Christoph

Thanks Christoph

推荐答案

我今天终于需要这样做(为了解决我遇到一个问题,我的名字中包含空格的目录没有包含在生成的PDE Build中)。我最终得到了一些可以构建我的(基于Java)插件的集合。我不知道它是否最小,但它是Java PDE Build的重点,远远小于完整的Eclipse IDE安装。

I finally needed to do this myself today (to address a problem I was having where directories with spaces in their names weren't being included in the bundle PDE Build produced). I eventually got something that could build my collection of (Java-based) plug-ins. I don't know whether it's "minimal", but it's Java PDE Build-focused and much smaller than a full Eclipse IDE install.

我粗略的笔记;在这里可能有一些遗漏或多余的步骤,但主要应该引导。

I took rough notes; there could be a few omissions or superfluous steps here, but in the main it should guide.

我:


  1. 引发了最近的Eclipse IDE(在我的情况下,我现在使用的3.5实例)。

  2. 使用了一个临时工作区,因此更改为目标平台不会弄乱我的真实项目。

  3. 确保将目标平台设置到我想要绘制我的PDE构建器插件的位置(在我的情况下,只是我运行的Eclipse)。 (窗口|首选项... |插件开发|目标平台)

  4. 创建一个新的空项目。

  5. 创建了一个新的产品配置该项目(使用基本设置)。

  6. 在新产品配置的概述页面上,未选中本产品包含本机启动器工件。

  7. 在依赖关系中,将以下插件指定为产品:


    • org.eclipse.pde.build

    • org.apache.ant

    • org.eclipse.jdt.core

  1. Fired up a recent Eclipse IDE (in my case, the 3.5 instance I use at the moment).
  2. Used a scratch workspace, so changes to the target platform wouldn’t mess up my "real" projects.
  3. Made sure the target platform was set to the place I wanted to draw my PDE builder's plug-ins from (in my case, just my running Eclipse). (Window | Preferences... | Plug-in Development | Target Platform)
  4. Created a new empty project.
  5. Created a new Product Configuration within that project (using the "basic settings").
  6. On the new product configuration's "Overview" page, unchecked "The product includes native launcher artifacts."
  7. On Dependencies, specified the following plug-ins as constituting the product:
    • org.eclipse.pde.build
    • org.apache.ant
    • org.eclipse.jdt.core

现在我可以(继续)通过调用像下面这样的宏(正在有更好的方法)从我正常的Ant构建中启动PDE Build:

Now I can (continue to) launch a PDE Build from my normal Ant build by invoking a macro like the following (is there a better way?):

<macrodef name="build-a-product">
    <attribute name="config-dir"/>
    <sequential>
        <property name="product-build-file" value="${pde-builder-path}\plugins\org.eclipse.pde.build_3.5.2.R35x_20100114\scripts\productBuild\productBuild.xml" />
        <java jar="${pde-builder-path}\plugins\org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar" fork="yes" failonerror="yes" >
            <arg value="-application" />
            <arg value="org.eclipse.ant.core.antRunner" />

            <arg value="-buildfile" />
            <arg value="${product-build-file}" />

            <arg value="-Dbuilder=@{config-dir}" />

            <arg value="-Dbasedir=${basedir}" />
        </java>
    </sequential>
</macrodef>

这篇关于Eclipse:无头PDE构建所需的最小Eclipse安装是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆