Wednesday, March 17, 2010

Launching a process in groovy

Just a quick little groovy tid-bit here. If you've ever launched an external process in Java, you know what a pain it can be. Groovy makes it quite simple. You can execute a process from a string by using the execute method. A simple example would be "ls -al mydir".execute(). That's it.

No comments:

Post a Comment