This is my first participation to an open source project, so if anything is unclear or missing don't hesitate to tell me.
To fix the slow startup problem I'm running a Groovy Shell as server so the loading is only done once. This trick divides by about ten the time needed to start a script on my config.
There is still problems, mainly concerning handling exceptions as by default server exceptions are send to the client which make the error stack unreadable.
There is 3 files :
- GrServ.groovy is the server class which run the script and as to be run only once
- GroovyClient.java is the client class which is run every time a script is run. It sends script path and params to the server.
- grsh is used as a file interpreter on unix system
Once the server is started a groovy script can be executed just by setting the shebang line to grsh path.
By default the script adds the jars contained in the script file path to the classpath.
data sends to the server follow the format:
The scripts have only been tested on a ubuntu 9.10 64bits