El Método main

Así, la siguiente declaración minimal de main funciona:

~/Lgroovy/objects$ cat -n main.groovy 
     1  class SomeClass {
     2    static main(args) {
     3      args.each { println it }
     4    }
     5  }
En efecto:
~/Lgroovy/objects$ groovy main.groovy one two three
one
two
three

Casiano Rodríguez León
2010-04-30