How to add imports to groovysh on startup?

Posted by ipolevoy on Stack Overflow See other posts from Stack Overflow or by ipolevoy
Published on 2010-06-15T00:46:17Z Indexed on 2010/06/15 0:52 UTC
Read the original article Hit count: 293

Filed under:
|

I'm working on a project where I'd like users to experiment with Java classes on Groovysh. I'd like to make it convenient for them and want to import certain packages by default, when groovysh starts up so that users would not have to re-type the same imports every time they start the shell. Does anyone know how to accomplish this?

Thanks in advance, igor

© Stack Overflow or respective owner

Related posts about groovy

Related posts about groovyshell