EScript - writing your own module

So you want to write your own scripting module? This is far easier than you might imagine, lets go!

Prerequisites:

Download the EScript sources from github. Best clone the repository, it will come with a working script module example project.

If you need to use https for fetching you might get an error when creating the repository location. I had to disable SSL verification in eclipse to successfully connect to github. In case you experience the same problems go to Preferences / Team / Git / Configuration and add a new entry: http.sslVerify = false

Creating the module:

Create a new Plug-in project. Navigate to the Extensions tab of your plugin.xml and add an extension com.codeandme.scripting.language. This will also add a plugin dependency to com.codeandme.scripting.

Right click on the new extension and add a New -> module. Provide a nice, unique name (which will be the name the module is addressed later on) and an implementing class. Let this class derive from com.codeandme.scripting.modules.AbstractScriptModule (if you won't, you will have to create all the nice wrapper functions on your own!)