开发者

Scripting Eclipse

开发者 https://www.devze.com 2023-03-26 11:55 出处:网络
I\'m wondering if it\'s possible to script certain actions of Eclipse itself. I\'d like to be able to start a server, stop it, etc. Is this possible and if so, how?

I'm wondering if it's possible to script certain actions of Eclipse itself. I'd like to be able to start a server, stop it, etc. Is this possible and if so, how?

Edit: I'd like to be able to do this so I can run certain server commands just through an SSH connection, no physical interaction required. Thanks开发者_如何学运维.


Note that Martin OBERHUBER announced in his blog (April 2012):

I've started a new initiative to get scripting support back home to Eclipse.org and unify the fragmented landscape a bit.

  • a mailing list dedicated to scripting in Eclipse: eclipse-scripting-dev
  • an "Eclipse Scripting BoF session at EclipseCon 2012" page lists the first initiatives.

So:

  • 10 years after bug 8519 (keystroke macros recording and playing capability),
  • 9 years after bug 37680 (Add Eclipse automation),
  • 6 years after bug 158716 ([Workbench] Pull Scripting support into platform),

..., that topic might finally evolve.


I think it is not supported OOTB. You can configure external tools which are basically just canned command lines that you can pass workbench variables. You can write scripts externally in Perl, Python or whatever and invoke them as external commands. The output can be captured in a console tab and you configure it to trigger a workspace rebuild and/or refresh.


You would probably want to check: http://www.viplugin.com/scripteclipse.htm

I am using it to run JavaScripts inside Eclipse to automate some tasks.


Eclipse has a headless mode, mainly tailored for headless builds, but you might be able to leverage that for your purposes. You'll probably have to create your own application or plugin to handle what you want, assuming that the features you need aren't GUI dependent. Search Google for "eclipse headless" to get started.


As of June 2014, the latest official scripting initiative seems to be:

EASE

The project is still under incubation.


Regarding the answer from vonC: Eclipse scripting got really active again in the last view weeks. Currently the development takes place at github: https://github.com/adaussy/EScriptMonkey We are striving for a dedicated project in the e4 incubator. A first prototype will be available by end of October. Interested parties may visit the "Scripting baby" session at EclipseCon Europe 2013.

0

精彩评论

暂无评论...
验证码 换一张
取 消