[root]/groovy/groovy-core/src/examples/commandLineTools
Made notworking 'test' into a working example as it wasn't really a test anyway
27 lines of code changed in:
* Amended more examples for new jsr syntax
73 lines of code changed in:
* BIG CHANGE TO TEST PROCEDURES
* In order to speed up the tests, I have grouped the tests into vague groupings
called TestSuites in junit speak.
* If you add any new tests, please add to one of the existing suites,
exactly where doesn't matter, unless it is slightly long running test
in which case put it in UberTestCaseLongRunningTests.java
* The individual test results no longer print to screen during build
(just the number of failures in each suite)
* In order to dig deeper into each failure, look in
target/test-reports/TEST-???.xml and search for 'failure' text string
This should now improve build time by an order of 5 or so. YMMV
jez
36 lines of code changed in:
convert an ant build file into a format suitable for http://sf.net/projects/freemind
inspired by Sam Newman's article...
http://www.magpiebrain.com/archives/2004/12/02/antgui
Mmmm, pretty :-)
0 lines of code changed in:
Added 'socket' as a property available when writing -l (listen mode) scripts.
Updated SimpleWebServer.groovy to use the raw socket when serving binary files,
as the PrintWriter that is bound to 'out' is not intended for raw bytes.
34 lines of code changed in:
Renamed command line option -w <port> to -l <port>, with the intention that -l is short
for listen on specified port (port is optional and defaults to 1960)
Also, you can now use the existing -p flag to alter behaviour of listen
i.e. The following two examples are equivalent in behaviour:
groovy -l -e "println line.reverse()"
groovy -l -p -e "line.reverse()"
4 lines of code changed in:
Added SimpleWebServer using...
groovy -w 80 SimpleWebServer.groovy
Also modified the mechanics of -w a bit, so that each socket connection gets
their own instance of the Script, so they can modify variables without
affecting each other.
The script is reparsed for each connection, which
should mean you can modify the script, and reconnect for new results :-)
63 lines of code changed in: