...
| Code Block |
|---|
//Callee.groovy
class Callee {
void hello() {
println "hello, world"
}
}
|
| Code Block |
|---|
//Caller.groovy c = new Callee() c.hello() |
| Code Block |
|---|
groovy -cp . caller |
...
This will execute the autogenerated main(String[] args) method in the bytecode which instantiates the Foo class, which extends the
| Wiki Markup |
|---|
{link:Script|http://groovy.codehaus.org/apidocs/groovy/lang/Script.html}{link} |
...