12

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.

6 Answers 6

4

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.

So:

..., that topic might finally evolve.

Sign up to request clarification or add additional context in comments.

Comments

2

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.

Comments

2

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.

Comments

1

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.

Comments

1

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

EASE

The project is still under incubation.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.