Mar 04
Digg
Stumbleupon
Technorati
Delicious

Coffee break application… a < 30 minutes groovy application!

How many lines of code to do something like this?

def host = new Ghost(“barman.byte-code.com“)
def result = host.ls()
println result

think about it carefully… do you think it’s possible in less then 10?
Let’s pull out a groovy solution!
The server:
1:import groovy.net.xmlrpc.*
2:import java.net.ServerSocket
3:
4:def server = new XMLRPCServer()
5:def socket = new ServerSocket(8080)
6:
7:server.executeShell = [...]

Author: admin