Display System Properties in Groovy

It can't get any simpler than this.

System.properties.each { k,v->
    println "$k = $v"
}

Groovy rocks!!

1 comment:

Alexander Johnson said...

Thanks for this! I'm finding that Groovy allows you to do whatever you want with extreme efficiency as long as you know all the hidden variables and obscure syntax shortcuts. ;)