Provides a shell-like capability for handling external processes.
Module Overview
Groosh is a Unix like shell written in Groovy. It has also been known as the Process Module but was renamed (back) when it was updated to work with Groovy 1.0.
The current version of Groosh is 0.3.5
Team Members
- Yuri Schimke - Founder and original contributor
- Alexander Egger [alexander.egger at gmail.com] - Current maintainer
Download
Distributions
Source code and binary releases are available at http://kenai.com/projects/groovy-groosh.
Installing
Copy groosh-0.3.5.jar to your $GROOVY_HOME/lib.
Try the following script to check if it worked:
Have a look at the examples directory for more examples how to use
groosh.
Pre-requisites
Groosh is based on Groovy 1.5.0 or higher.
Documentation
The following example shows Groosh in action:
Another example :
Sometimes the name of a shell command conflicts with a Groovy method (for example ''grep''). This means that
does not execute the shell command, but the Groovy method grep(...).
As a workaround for that you may prefix any shell command with _ this means the example above becomes
The following example shows a more elaborate example. It uploads photos to a flickr account using the command line tool flickcurl. A photo set of this images is created and named after the current directory.
Developers
Source Control
The Groosh source code is available from https://svn.kenai.com/svn/groovy-groosh~subversion.
Building
Building with Netbeans
Open the Kenai project in Netbeans and run build.
Building without Netbeans
Check out the source from
https://svn.kenai.com/svn/groovy-groosh~subversion
Groosh uses Maven 2 for building. You have to have Maven 2 installed.
Just execute mvn in the groosh directory groosh gets build.
Contributing
Please contact Alexander Egger [alexander.egger at gmail.com] by e-mail.
Community
For mailing lists, issue trackers, forums etc see http://kenai.com/projects/groovy-groosh