| 1 Installing Groovy |
| |
| This document describes how to install a binary distribution of Groovy. |
| For those familiar with tools like {link:Ant|http://ant.apache.org/} or {link:Maven|http://maven.apache.org/} these steps will be very familiar. |
| |
| * {link:download|download.html} a binary distribution of Groovy and unpack the |
| distribution into some file on your local file system. |
| * set your __GROOVY_HOME__ environment variable to the directory you unpacked |
| the distribution |
| * add __GROOVY_HOME/bin__ to your __PATH__ environment variable. |
| * you should now have Groovy installed properly. You can test this by typing |
| the following in a command shell... |
| |
| |
| {code:shell} |
| groovysh |
| {code} |
| |
| Which should create an interactive groovy shell where you can type Groovy statements. |
| Or to run the Swing interactive console type |
| |
| {code:shell} |
| groovyConsole |
| {code} |
| |
| To run a specific groovy script type |
| |
| {code:shell} |
| groovy SomeScript.groovy |
| {code} |
| |
| |
| |