Directory groovy/groovy-core/src/examples/commandLineTools/

Directory Created:
2004-08-15 21:26
Total Files:
5
Deleted Files:
1
Lines of Code:
222

Browse with ViewVC

[root]/groovy/groovy-core/src/examples/commandLineTools

Lines of Code

groovy/groovy-core/src/examples/commandLineTools/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 11 (100.0%) 237 (100.0%) 21.5
jez 10 (90.9%) 210 (88.6%) 21.0
paulk 1 (9.1%) 27 (11.4%) 27.0

Most Recent Commits

paulk 2006-10-12 12:24

Made notworking 'test' into a working example as it wasn't really a test anyway

27 lines of code changed in:

jez 2005-04-05 10:12

* Amended more examples for new jsr syntax

73 lines of code changed in:

jez 2004-12-15 19:50

* 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:

  • groovy/groovy-core/src/examples/commandLineTools: BigTests.groovy (new 36)
jez 2004-12-02 16:52

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:

  • groovy/groovy-core/src/examples/commandLineTools: antmap.g (new)
jez 2004-08-24 08:30

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:

jez 2004-08-17 23:18

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:

jez 2004-08-15 21:26

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:

Generated by StatSVN 0.3.2-SNAPSHOT