eclipse中的configuration

本文详细解析了Eclipse的配置文件platform.xml的作用及如何通过配置文件指定启动时加载的plugins、使用的branding和参数等内容。同时提供了Eclipse启动参数的参考链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Be default, Eclipse uses a single configuration for a given installation. The
configuration information is saved in the platform.xml file found in the
\configuration\org.eclipse.update dirctory. Them primary content in the
configuration is a list install sites. An install site is a location on the file
system where an eclipse directory tree. with feature and plugins directories, can be found.
The configuration identifies what install sites are accessible, lists the features that
exist in each site, and determines what features are available and active when Eclipse is started.
The platform:/base/ site is a reference to the eclipse directory structure from which the eclipse.exe

was started.

解压后的configuration目录

D:\eclipse\eclipse-rcp-indigo-SR1-win32\eclipse\configuration>dir
 Volume in drive D is TOOLS
 Volume Serial Number is 7899-0DA2

 Directory of D:\eclipse\eclipse-rcp-indigo-SR1-win32\eclipse\configuration

2012-10-17  13:45    <DIR>          .
2012-10-17  13:45    <DIR>          ..
2011-11-02  14:44    <DIR>          .settings
2012-10-12  15:35               873 config.ini
2012-10-12  16:52    <DIR>          org.eclipse.core.runtime
2011-11-02  14:43    <DIR>          org.eclipse.equinox.app
2011-11-02  11:41    <DIR>          org.eclipse.equinox.simpleconfigurator
2011-11-02  11:41    <DIR>          org.eclipse.equinox.source
2012-10-12  16:52    <DIR>          org.eclipse.osgi
2011-11-02  14:44    <DIR>          org.eclipse.ui.intro.universal
2012-10-17  13:45    <DIR>          org.eclipse.update
               1 File(s)            873 bytes
              10 Dir(s)   5,241,536,512 bytes free


The default configuration is used when Eclipse is launched and applies to
any workspace that might be accessed. The -configurationstartup parameter can
be used to identify an alternnative configuration.

A configuration is a list of install sites and the features found in each of these install sites.
An install site is a location that contains features and plug-ins that can be included in the
configuration. The Update Manager processes the content of the features and plugins directiries of

the install site; if the content is valid, it can be included in configuration.


platform.xml文件的部分内容

<?xml version="1.0" encoding="UTF-8"?>
<config date="1350027346671" transient="false" version="3.0">
<site enabled="true" policy="USER-EXCLUDE" updateable="true" url="platform:/base/">
<feature id="org.eclipse.wst.xml_ui.feature" plugin-identifier="org.eclipse.wst.xml.ui" url="features/org.eclipse.wst.xml_ui.feature_3.3.1.v201108102009-7H7EFZ3DxumTlaI6nheRdHo2p1KaDIL1Uz-S3PL/" version="3.3.1.v201108102009-7H7EFZ3DxumTlaI6nheRdHo2p1KaDIL1Uz-S3PL">
</feature>
<feature id="org.eclipse.equinox.p2.core.feature" url="features/org.eclipse.equinox.p2.core.feature_1.0.1.R37x_v20110906-8290FZ3FUqIcLqkVkEaTdn_14C7G/" version="1.0.1.R37x_v20110906-8290FZ3FUqIcLqkVkEaTdn_14C7G">
</feature>

</site>
</config>


说白了,configuration的目的就是用来指定Eclipse启动时会加载哪些plugins,会使用哪些branding,会使用哪些参数等。

具体的启动参数可以参见:

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Frunning_eclipse.htm

from The Java Developer's Guide to ECLIPSE


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值