可以通过命令行在Eclipse中安装插件:
eclipse -noSplash -application org.eclipse.equinox.p2.director -r <url> -i <comma separated list of ids that need to be installed>
可以通过UI配置Eclipse,例如启用行号。如何通过命令行更改配置?
尝试
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似乎不支持通过命令行更改配置。
答案 0 :(得分:0)
我不认为这一点得到普遍支持,特别是考虑到每个插件管理自己的一组权限。 但是,Oomph项目可能会有所帮助,具体取决于您的实际目标(您没有说明您的最终目标是什么)。它旨在作为Eclipse的通用配置管理工具。 有关详细信息,请参阅this answer。