我想创建一个 Eclipse 安装程序来安装一个不显示欢迎页面的 Eclipse。
这篇博文建议使用 ResourceCreationTask 创建一个设置文件:
<setupTask
xsi:type="setup:ResourceCreationTask"
id="rtt.suppress.welcome.page"
content="eclipse.preferences.version=1\nshowIntro=false"
targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs"
encoding="UTF-8">
<description>Suppress showing of the Welcome page.</description>
</setupTask>
然后作者添加了一条评论,指出这会导致问题,因为${workspace.location}
在安装过程中未定义。然而,建议的解决方案是替换${workspace.location}
为${install.location}/ws
. 这将在安装位置的子目录中创建一个文件,并且没有帮助,除非该位置恰好是工作区。
另一个建议是targetURL="${osgi.instance.area|file}.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs"
。那也无济于事。
不幸的是,我找不到关于哪些变量可以与 Oomph 一起使用的文档。