I like automated development environment setup such as yum, apt-get, MacPort, etc…
I use Eclipse & ADT for Android application development. I could automate its almost from CUI, but not Eclipse plugins. Subclipse, EGit, ADT, etc…
Now I found the one of the answer. It’s equinox.
Search
$ java -jar plugins/org.eclipse.equinox.launcher_<your version>.jar -application org.eclipse.update.core.standaloneUpdate -command search -from http://xxx/
example
$ java -jar plugins/org.eclipse.equinox.launcher_<your version>.jar -application org.eclipse.update.core.standaloneUpdate -command search -from https://dl-ssl.google.com/android/eclipse/ "Android Development Tools" com.android.ide.eclipse.adt 10.0.1.v201103111512-110841 "Android Traceview" com.android.ide.eclipse.traceview 10.0.1.v201103111512-110841 "Android DDMS" com.android.ide.eclipse.ddms 10.0.1.v201103111512-110841 "Android Hierarchy Viewer" com.android.ide.eclipse.hierarchyviewer 10.0.1.v201103111512-110841 Command completed successfully.
Install
$ java -jar plugins/org.eclipse.equinox.launcher_<your version>.jar -application org.eclipse.update.core.standaloneUpdate -command install -featureId <featureId> -version <version> -from http://xxx/
example
$ java -jar plugins/org.eclipse.equinox.launcher_<your version>.jar -application org.eclipse.update.core.standaloneUpdate -command install -featureId com.android.ide.eclipse.ddms -version 10.0.1.v201103111512-110841 -from https://dl-ssl.google.com/android/eclipse/
…We must specify equinox and feature version. I wrote simple python script.
example
$ export ECLIPSE_ROOT=your eclipse path $ ./pyecliplug.py search http://download.gna.org/eclox/update/ "Hot Eclox" org.gna.eclox.hot 0.7.3 "eclox" org.gna.eclox 0.6.5 "Eclox Hot" org.gna.eclox.hot 0.8.0 "Eclox" org.gna.eclox 0.8.0 Command completed successfully. $ ./pyecliplug.py install http://download.gna.org/eclox/update/ org.gna.eclox.hot Feature org.gna.eclox.hot 0.7.3 has successfully been installed Command completed successfully.
It works fine, but installed plugin cannot uninstall from Eclipse GUI…