如何通过命令行配置 Eclipse?
How to configure Eclipse via the command line?
可以通过命令行在 Eclipse 中安装插件:
eclipse -noSplash -application org.eclipse.equinox.p2.director -r <url> -i <comma separated list of ids that need to be installed>
可以通过 UI 配置 Eclipse,例如启用行号。如何通过命令行更改配置?
尝试次数
- 它可以通过 UI 更改配置来自动配置,随后创建配置目录的 ZIP 并将其部署到其他计算机上
- 运行
user@host ~ $ eclipse -noSplash -application org.eclipse.equinox.p2.director
结果:
...
-help | -h | -?
Prints this command line help information.
-list | -l [ <comma separated list> ]
Lists all IU's found in the given repositories. IUs can optionally be listed. Each entry in the list is in the form <id> [ '/' <version> ].
-listInstalledRoots | -lir
Lists all root IU's found in the given profile. Each entry in the list is in the form <id> [ '/' <version> ].
-listFormat | -lf <list format string>
Formats the list of IUs according to the given string. Use ${property} for variable parts, e.g. ${org.eclipse.equinox.p2.name} for the IU's name. ID and version of an IU are available through ${id} and ${version}.
-installIU | -installIUs | -i <comma separated list>
Installs the listed IU's. Each entry in the list is in the form <id> [ '/' <version> ].
-uninstallIU | -uninstallIUs | -u <comma separated list>
Uninstalls the listed IU's. Each entry in the list is in the form <id> [ '/' <version> ].
-revert <comma separated list>
Revert the installation to a previous state [ the number representing the previous state of the profile as found in p2/org.eclipse.equinox.p2.engine/<profileId>/ ].
-destination | -d <path>
The folder in which the targeted product is located.
-downloadOnly
Only download the artifacts.
-metadatarepository | metadatarepositories | -m <comma separated list>
A list of URL's denoting meta-data repositories.
-artifactrepository | artifactrepositories | -a <comma separated list>
A list of URL's denoting artifact repositories.
-repository | repositories | -r <comma separated list>
A list of URL's denoting co-located meta-data and artifact repositories.
-verifyOnly
Only verify that the actions can be performed. Don't actually install or remove anything.
-tag <name>
Tag the provisioning operation for easy referencing when reverting.
-listTags
List the tags available
-profile | -p <name>
Defines what profile to use for the actions.
-flavor | -f <name>
Defines what flavor to use for a newly created profile.
-shared | -s [ <path> ]
Use a shared location for the install. The <path> defaults to ${user.home}/.p2
-bundlepool | -b <path>
The location where the plug-ins and features will be stored. Effective only when a new profile is created.
-profileproperties <comma separated list>
A list of properties in the form key=value pairs. Effective only when a new profile is created.
-iuProfileproperties <path>
Path to a properties file containing a list of IU profile properties to set.
-roaming
Indicates that the product resulting from the installation can be moved. Effective only when a new profile is created.
-p2.os
The OS to use when the profile is created.
-p2.ws
The windowing system to use when the profile is created.
-p2.arch
The architecture to use when the profile is created.
-p2.nl
The language to use when the profile is created.
-purgeHistory
Remove the history of the profile registry.
-followReferences
Follow repository references.
Eclipse 似乎不支持通过命令行更改配置。
我认为这通常不受支持,尤其是考虑到每个 plug-in 管理自己的一组偏好。
但是,Oomph 项目可能会有所帮助,具体取决于您的实际目标(您没有说明您的最终目标是什么)。它旨在作为 Eclipse 的通用配置管理工具。
有关详细信息,请参阅 this answer。
可以通过命令行在 Eclipse 中安装插件:
eclipse -noSplash -application org.eclipse.equinox.p2.director -r <url> -i <comma separated list of ids that need to be installed>
可以通过 UI 配置 Eclipse,例如启用行号。如何通过命令行更改配置?
尝试次数
- 它可以通过 UI 更改配置来自动配置,随后创建配置目录的 ZIP 并将其部署到其他计算机上
- 运行
user@host ~ $ eclipse -noSplash -application org.eclipse.equinox.p2.director
结果:
...
-help | -h | -?
Prints this command line help information.
-list | -l [ <comma separated list> ]
Lists all IU's found in the given repositories. IUs can optionally be listed. Each entry in the list is in the form <id> [ '/' <version> ].
-listInstalledRoots | -lir
Lists all root IU's found in the given profile. Each entry in the list is in the form <id> [ '/' <version> ].
-listFormat | -lf <list format string>
Formats the list of IUs according to the given string. Use ${property} for variable parts, e.g. ${org.eclipse.equinox.p2.name} for the IU's name. ID and version of an IU are available through ${id} and ${version}.
-installIU | -installIUs | -i <comma separated list>
Installs the listed IU's. Each entry in the list is in the form <id> [ '/' <version> ].
-uninstallIU | -uninstallIUs | -u <comma separated list>
Uninstalls the listed IU's. Each entry in the list is in the form <id> [ '/' <version> ].
-revert <comma separated list>
Revert the installation to a previous state [ the number representing the previous state of the profile as found in p2/org.eclipse.equinox.p2.engine/<profileId>/ ].
-destination | -d <path>
The folder in which the targeted product is located.
-downloadOnly
Only download the artifacts.
-metadatarepository | metadatarepositories | -m <comma separated list>
A list of URL's denoting meta-data repositories.
-artifactrepository | artifactrepositories | -a <comma separated list>
A list of URL's denoting artifact repositories.
-repository | repositories | -r <comma separated list>
A list of URL's denoting co-located meta-data and artifact repositories.
-verifyOnly
Only verify that the actions can be performed. Don't actually install or remove anything.
-tag <name>
Tag the provisioning operation for easy referencing when reverting.
-listTags
List the tags available
-profile | -p <name>
Defines what profile to use for the actions.
-flavor | -f <name>
Defines what flavor to use for a newly created profile.
-shared | -s [ <path> ]
Use a shared location for the install. The <path> defaults to ${user.home}/.p2
-bundlepool | -b <path>
The location where the plug-ins and features will be stored. Effective only when a new profile is created.
-profileproperties <comma separated list>
A list of properties in the form key=value pairs. Effective only when a new profile is created.
-iuProfileproperties <path>
Path to a properties file containing a list of IU profile properties to set.
-roaming
Indicates that the product resulting from the installation can be moved. Effective only when a new profile is created.
-p2.os
The OS to use when the profile is created.
-p2.ws
The windowing system to use when the profile is created.
-p2.arch
The architecture to use when the profile is created.
-p2.nl
The language to use when the profile is created.
-purgeHistory
Remove the history of the profile registry.
-followReferences
Follow repository references.
Eclipse 似乎不支持通过命令行更改配置。
我认为这通常不受支持,尤其是考虑到每个 plug-in 管理自己的一组偏好。 但是,Oomph 项目可能会有所帮助,具体取决于您的实际目标(您没有说明您的最终目标是什么)。它旨在作为 Eclipse 的通用配置管理工具。 有关详细信息,请参阅 this answer。