[root]/groovy/groovy-core/src/examples/swing
Updated old closure notation with pipes instead of arrows.
5 lines of code changed in:
Remove all @Property usage
2 lines of code changed in:
fixed problem with moved XmlSlurper package
1 lines of code changed in:
update to JSR Version. (oh, that one was very old...)
5 lines of code changed in:
update Widgets example to latest JSR 02 rules
10 lines of code changed in:
did some currying to spice it up a bit
44 lines of code changed in:
remove duplicated headers inrtoduced in the last commit
0 lines of code changed in:
Replace a java like string concatination with a GString
18 lines of code changed in:
Slurp the XML directly from the response rather than creating a String and parsing that
5 lines of code changed in:
Deal with the fact that the description element is optional in RSS 2.0
Use XMLSlurper so that we can get rid of redundant [0] in GPath expressions
Also we can ommit the text() call when we want a String
7 lines of code changed in:
Modified to use slightly more idiomatic forms of Groovy
70 lines of code changed in:
An example of the Bloglines Web Services.
Written by Marc Hedlund <marc@precipice.org>, September 2004.
Used in Marc's article at:
http://www.oreillynet.com/pub/a/network/2004/09/28/bloglines.html
Requirements:
- install Groovy as detailed at <http://groovy.codehaus.org/>.
- put commons-httpclient-2.0.1.jar into GROOVY_HOME/lib
see <http://jakarta.apache.org/commons/httpclient/>.
note: this is currently designed for HttpClient2.x and not HttpClient3.x
To Launch:
groovy BloglinesClient.groovy
Thanks for sharing this example Marc!
167 lines of code changed in:
Example from Danno Ferrin using the SwingBuilder
205 lines of code changed in: