Added patches from Brian McCallister for new Groovy JDK methods
* File.filterLine([out]) {...}
* InputStream.filterLine([out]) {...}
* Collection.asImmutable()
I've added tests for all of these new methods.
The asImmutable() group of methods will have to be looked at further,
as the underlying Collection still appears to be modifiable at the moment!
Therefore, we can close GROOVY-624 and GROOVY-625,
but I will leave GROOVY-623 open for the moment, till the issue here is resolved.
Cheers brianm, keep those patches rolling...
138 lines of code changed in:
long overdue sync
268 lines of code changed in:
removed eclipse junk
0 lines of code changed in:
Applied Artur's patch for GROOVY-622
10 lines of code changed in:
Initial Readline support
194 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.
35 lines of code changed in:
Update the asm references
29 lines of code changed in:
Retrieve the classpath associated with the selected file's module.
Added some logging statements.
25 lines of code changed in:
Added a goal to create an embeddable groovy jar
this contains groovy.jar and the core asm.jar
together with the license for groovy and asm.
This goal is intended to be used inside maven upon
'maven rebuild' and not to be called directly...
56 lines of code changed in:
added stopAtNonOption to CLI parse, which will prevent arguments to your groovy scripts being parsed by CLI (but arguments to groovy itself should be parsed)
e.g.
groovy echoArguments.groovy -t.bak
will now output
-----
-t.bak
-----
as opposed to a complaint about -t not being a valid option to groovy
Thanks to Yuri for this one.
1 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()"
19 lines of code changed in:
Started working on means to run groovy scripts and classes
137 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 :-)
91 lines of code changed in:
just added author tag
1 lines of code changed in:
Added -w option to put groovy into socket listening mode.
This will execute the command line supplied script against connecting sockets.
e.g. groovy -w -e "line.reverse()"
109 lines of code changed in:
Added a mortgage calculator as a slightly more complex example of an interactive console script
87 lines of code changed in:
tidied up some of the output of SqlGenerator
13 lines of code changed in:
Added a SQLGenerator, which will generate generic DDL based upon
a relational structure defined by RelationalBuilder.
Ported from SqlBuilder.java (r1.14) in commons-sql, pretty much line by line, although
many things have been simplified by use of properties, the new 'for' and closures.
A nice example of intended use is available in SqlGeneratorTest.groovy
928 lines of code changed in:
refactored core gsql data structure to expose tables and columns as groovy properties.
Also have begun to look at type mapping
89 lines of code changed in:
reverted to revision 1.13, removing Bevin's change, as it was causing ClassCastException/Reflector issues etc...
1 lines of code changed in:
added ability to use gpath expressions to navigate Relational Schema
20 lines of code changed in:
Added a groovy builder to construct relational schema
154 lines of code changed in:
Slight change to take problem with overriding getters into account
8 lines of code changed in:
Test cases to illustrate various issues with current groovy implementation
117 lines of code changed in:
Empty plugin and directory structure
90 lines of code changed in: