Starting groovyConsole to execute Groovy snippets
The Groovy distribution has another option for developers who are more familiar with a graphical interface and want to try out code snippets. The tool in question is groovyConsole
, which is very similar to groovysh
(see the Using groovysh to try out Groovy commands recipe) except that it provides a GUI with syntax highlighting and basic code editor features.
In this recipe, we are going to cover basic GroovyConsole usage scenarios.
How to do it...
Open your shell and let's dive in:
- To start GroovyConsole, you just need to fire the
groovyConsole
command in your command line:The GroovyConsole screen is ...
Get Groovy 2 Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.