私は非常にカスタマイズされたEclipse環境のコーディング環境を、完全に無人でLinuxのスクリプトからセットアップする必要があります。カスタマイズされたEclipse環境では、さまざまなソース(protobuf、pydev、cmakeed、openinterminal、egit、yaml、webpageeditorなど)から約10種類のプラグインをインストールする必要があります。 guiで毎回手動で行うには20〜30分かかります。私はスクリプトでプラグインのインストールを自動化したいので、linuxを実行している人は誰もが人間の介在なしにプラグインのカスタムセットを使ってEclipse環境を作り直すことができます。誰でもこれを行う方法についてのアドバイスがありますか?スクリプトからEclipseプラグインのリストをインストールするには?
答えて
私の好きなプラグイン(Eclipse Indigo 3.7でテスト済み)をインストールするためのコマンドラインスニペットは次のとおりです...このトリックは、パッケージのinstallIUパラメータの値を把握することです... Eclipse GUIインストーラウィンドウで目的のパッケージが選択されているときに「more」リンクをクリックすると、これが表示されます。
eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/indigo/,http://cmakeed.sourceforge.net/eclipse/ -installIU com.cthing.cmakeed.feature.feature.group
OpenInTerminal - Add option in context menu
eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/indigo/,http://eclipse-openinterminal.googlecode.com/svn/trunk/site/ -installIU OpenInTerminal.feature.group
protobuf-dt - Google Protobuffer editor
eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/indigo/,http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/,http://protobuf-dt.googlecode.com/git/update-site -installIU com.google.eclipse.protobuf.feature.group
yedit - YAML Editor
eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/indigo/,http://dadacoalition.org/yedit -installIU org.dadacoalition.yedit.feature.group
eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/indigo/,http://download.eclipse.org/technology/dltk/updates/,https://sourceforge.net/projects/shelled/files/shelled/update/ -installIU net.sourceforge.shelled.feature.group
のWebページエディタ
eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/indigo/ -installIU org.eclipse.jst.webpageeditor.feature.feature.group
PyDevは
それは、証明書のモミをインストールする必要があるため、PyDevはトリッキーですトン...ここでは、そのステップを自動化するスクリプトです:
#!/usr/bin/python
# Add PyDev's certificate to Java's key and certificate database
# Certificate file here: http://pydev.org/pydev_certificate.cer
import os, sys, pexpect, urllib2
def main():
# NOTE: You may have to update the path to your system's cacerts file
certs_file = '/usr/lib/jvm/default-java/jre/lib/security/cacerts'
pydev_certs_url = 'http://pydev.org/pydev_certificate.cer'
print "Adding pydev_certificate.cer to %s" % (certs_file)
pydev_cert = open('pydev_certificate.cer', 'w')
pydev_cert.write(urllib2.urlopen(pydev_certs_url).read())
pydev_cert.close()
cmd = "keytool -import -file ./pydev_certificate.cer -keystore %s" % (certs_file)
child = pexpect.spawn(cmd)
child.expect("Enter keystore password:")
child.sendline("changeit")
if child.expect(["Trust this certificate?", "already exists"]) == 0:
child.sendline("yes")
try:
child.interact()
except OSError:
pass
print "done"
if __name__ == "__main__":
main()
次に、あなたが実行することができます[?どのコマンドラインとEclipseプラグインのインストールを自動化します]
eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/indigo/,http://pydev.org/updates/ -installIU org.python.pydev.feature.feature.group
これはウィンドウでも機能し、eclipse実行ファイルのパスに '.exe'を追加するだけです。 Pythonスクリプトに関しては、Pythonで実行するか、 '/ usr/bin/python'で修正する必要があります。ほとんどの設定では動作せず、pexpectモジュールは現在Windows上で動作しません。これらの問題はどちらもCygwinで解決されるかもしれませんが、私はそれを使用しないので、私は確認できません。 – bschlueter
p2 director applicationを使用して、スクリプトでEclipse機能をインストールできます。ここにはmorelinksがあります。
ありがとう!正確に私が必要としたもの。 – heathbar
- 1. Eclipse内からEclipseプラグインをプログラムでインストールしますか?
- 2. EclipseのインストールIBMプラグイン
- 3. Eclipse用PDEプラグイン - どのリポジトリからインストールするのですか?
- 4. EclipseにADTプラグインをインストール
- 5. eclipse indigoにfreemarkerプラグインをインストール
- 6. Eclipseプラグインをダウンロードする(インストールせずに)
- 7. EclipseプラグインからEclipseプロジェクトをスキャンする
- 8. HadoopのEclipseプラグインをインストールする
- 9. eclipseプラグインのインストール/ダウンロードをカウントする
- 10. のEclipseプラグインの開発プラグインがインストール
- 11. PMD Eclipseプラグインのインストールのヘルプ
- 12. のEclipse PDTプラグインのインストール
- 13. EclipseプラグインInstatllationエラー - このリンクからEclipse用の桟橋のプラグインをインストールしようとすると突堤
- 14. EclipseでMavenプラグインをインストール
- 15. Eclipse用wro4jプラグインのインストール
- 16. GWT M2E Eclipseプラグインのインストール
- 17. eclipse用GWTプラグインのインストール
- 18. SWTプラグインをEclipse 3.7.1にリポジトリからインストールできません
- 19. SPARK IDEのプラグインをEclipseにインストールするには
- 20. EclipseでMercurialプラグインをインストールする方法
- 21. scala android eclipseプラグインをインストールする
- 22. EclipseプラグインをインストールするBPMN2-Modeler
- 23. UMLプラグインfor Eclipseのインストール方法は?
- 24. EclipseプラグインをSymfony 2にインストールするには?
- 25. Eclipse用SVNプラグインをUbuntuにインストール
- 26. Eclipse IndigoにJBoss Toolsプラグインをインストール
- 27. Eclipse SVNプラグインのインストールに失敗mac
- 28. ソフトウェア/プラグインをEclipse IDEに手動でインストールする方法は?
- 29. プラグインからEclipseエラーログビューをクリア
- 30. が、私はGoogleのプラグインをインストールするEclipseの
の可能性重複( http://stackoverflow.com/questions/7163970/how-do-you-automate-the-installation-of-eclipse-plugins-with-command-line) – 030