The Groovy Console is a Java Swing based graphical user interface that is packaged with the Groovy distribution. It provides a simple but elegant way of executing interactive groovy scripts, with Groovy script entered in the top window, and the output of the script appearing in the lower window.
The Groovy Console is a Java Swing based graphical user interface that is packaged with the Groovy distribution. It provides a simple but elegant way of executing interactive groovy scripts, with Groovy script entered in the top window, and the output of the script appearing in the lower window.
The console is launched with one of a few variations of a command line call to groovyConsole. The variations comprise platform differences and executables that are compiled for some operating systems. It's location is:
<Groovy Home>\bin\groovyConsole[.*]
Variations include:
- groovyConsole.bat (Windows)
- groovyConsole.exe (Windows)
- groovyConsole (Unix/Linux)
Groovy Console Snapshot
GroovyConsole Functions
Some of the useful functions provided in the UI are:
- File Open / File Save / File New
- New Window (multiple open windows supported)
- Standard Edit Menu Functions (Copy/Paste/Undo/Redo/Search/Replace)
- Various UI Property Toggles and Controls
- Groovy AST Viewer
- Groovy Variables Viewer
- Compile Scripts
- Run Scripts
- Interrupt Running Script
- Add JAR to Classpath
- Add Directory to Classpath