|
Groovy example source code file (Reflections.groovy)
The Groovy Reflections.groovy source code
/**
* Echoes back whatever is thrown at it (with a <br> at end for browsers) ...
* @author <a href="mailto:jeremy.rayner@gmail.com">Jeremy Rayner
*
* invoke using
* groovy -l 80 Reflections.groovy
*
* (where 80 is the port to listen for requests upon)
*/
// echo, echo, echo...
println "${line} <br>"
//assume no input means we've finished...
if (line == "") {
// clean up gracefully, closing sockets etc
return "success"
}
Other Groovy examples (source code examples)Here is a short list of links related to this Groovy Reflections.groovy source code file: |
Other websites by Alvin Alexander:
Life/living in Alaska (OneMansAlaska.com)
How I Sold My Business (HowISoldMyBusiness.com)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.