This should help me remember how to run a Groovy script straight from the command line or from within a
Basically it’s only a matter of
- having a copy of groovy-all-x.y.z.jar available
- specifying a correct classpath
- letting the
groovy.ui.GroovyMainclass handle business.
The groovy-all-x.y.z.jar is available from the binary groovy distribution. (hint: inside the
The following one liners assume that the groovy-all-2.4.6.jar is placed inside the
lib/ folder, next to the script.