April 2005 Commit Log

Number of Commits:
110
Number of Active Developers:
9
fraz 2005-04-29 22:57

GROOVY-601: Updated UnicodeEscapingReader to use an ANTLR's CharScanner instead of referring to a specific lexer implementation

9 lines of code changed in:

jez 2005-04-29 19:40

* added an identity method to all Java Objects that allows you to

pass the Object to a closure.



For example:



foo[i].bar().film.identity { f ->

f.name = "Lavender Hill Mob"

f.year = 1951

f.ratio = [1.37,1]

}





This is almost like the future 'with' keyword, but with existing qualification

by the injected variable name (in this case 'f')



I'm not certain about the method name 'identity' though, I would use 'with'

but with the prospect of it becoming a keyword...



Open to better suggestions for a name for this method...



jez.

63 lines of code changed in:

phk 2005-04-29 05:39

Fix the errata of groovy.g while fixing GROOVY-826 (default method pointer bug).

3 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/antlr: groovy.g (+3 -3)
phk 2005-04-29 05:19

Fix GROOVY-826 (default method pointer bug).



For example,

def sayHello() { println "hello" }

def h = &sayHello // Now, this works.

h()

76 lines of code changed in:

fraz 2005-04-27 23:58

GROOVY-601: Added patch to be applied to the groovy.g master grammar in order to auto-generate the corresponding tree parser

1192 lines of code changed in:

phk 2005-04-27 03:36

Fix a test method: testDownStep()

1 lines of code changed in:

phk 2005-04-27 03:22

Enhance threee methods: upto, downto and step.

Prevent infinite loops with generating exceptions.

Now, step allows the negative stepNumber (i.e., fix GROOVY-792).

For example,

(6*Math.PI).step(2*Math.PI, -Math.PI/2) { println it }

245 lines of code changed in:

spullara 2005-04-24 07:53

temporary fix for "use" until chooseSpecficParams is fixed

3 lines of code changed in:

spullara 2005-04-24 06:55

Add support for building a Linux exectuable.

111 lines of code changed in:

jez 2005-04-21 20:02

* Added example usages of Lucene the search engine API in Groovy

based on examples in the wonderful 'Lucene in Action' book

by Erik Hatcher and Otis Gospodnetic ( http://www.lucenebook.com )



requires a lucene-1.x.x.jar from http://lucene.apache.org





From: Erik Hatcher



We'd be honored to have Groovy'fied Lucene in Action examples out

there! The PyLucene project did the same thing with our code,

actually. So its no problem at all.



Thanks



Erik

99 lines of code changed in:

jstrachan 2005-04-21 07:06

added linksource to javadoc so we can navigate from javadoc to source code

1 lines of code changed in:

jez 2005-04-19 23:48

* Added fix for infinite recursion issue during tree walker generation

35 lines of code changed in:

jez 2005-04-19 23:14

Added antlr generated tree walker for the antlr generated AST



Note: this doesn't yet compile fully

2793 lines of code changed in:

blackdrag 2005-04-19 13:25

additional close to be sure the streams are closed

5 lines of code changed in:

phk 2005-04-18 18:46

Change the demo script for testing methods: upto, downto, and step.

0 lines of code changed in:

phk 2005-04-18 18:29

Add a method: downto

Enhance two methods: upto and step

229 lines of code changed in:

jstrachan 2005-04-18 14:54

added a new helper method

11 lines of code changed in:

jstrachan 2005-04-18 14:19

upgraded Gram to the latest JSR

2 lines of code changed in:

alang 2005-04-17 22:37

Made AsmClassGenerator understand String asBool the same that Invoker has.

4 lines of code changed in:

jez 2005-04-17 12:24

* added src attribute to specify a groovy source file to the groovy ant task,

this is used if no source is found within the groovy tags



e.g.

<groovy src="MySpecialTask.groovy"/>

5 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/ant: Groovy.java (+5 -2)
jez 2005-04-17 12:08

* Moved groovy logo to a metapost file for easier inclusion in PDFs

1675 lines of code changed in:

fraz 2005-04-17 10:34

GROOVY-601: Updated list of ANTLR-generated artifacts to be ignored by CVS

1 lines of code changed in:

  • groovy/ide/groovyj/src/java/org/codehaus/groovy/intellij/language/parser: .cvsignore (+1 -2)
fraz 2005-04-17 10:31

GROOVY-601: Added list of ANTLR-generated artifacts to be ignored by CVS

7 lines of code changed in:

  • groovy/ide/groovyj/src/java/org/codehaus/groovy/intellij/language/parser: .cvsignore (new 7)
fraz 2005-04-16 13:34

GROOVY-601: finally managed to tweak GroovyPsiBuilder to build a trivial PSI tree made of script-header comment, new lines and other whitespace characters!

457 lines of code changed in:

jez 2005-04-14 20:46

* added default bindings to the script being executed inside <groovy/> tag



- ant : an instance of groovy.util.AntBuilder that knows about the current ant project

- project : the current ant project

- properties : a Map of ant properties, e.g. properties['java.vendor']

- target : the owning target that invoked this groovy script

- task : the wrapping task, can access anything needed in org.apache.tools.ant.Task, e.g. task.log("Problem...")



e.g.

<groovy>

ant.echo("hello world")

ant.jar(destfile:"foo.jar", basedir="classes")

</groovy>

7 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/ant: Groovy.java (+7)
blackdrag 2005-04-14 20:16

removed a java1.5 method

2 lines of code changed in:

blackdrag 2005-04-14 18:09

added missing def

1 lines of code changed in:

blackdrag 2005-04-14 18:07

added a missing def

1 lines of code changed in:

blackdrag 2005-04-14 17:24

handles inner classes now

102 lines of code changed in:

blackdrag 2005-04-14 17:21

added some missing defs

2 lines of code changed in:

blackdrag 2005-04-14 13:42

corected typo

2 lines of code changed in:

blackdrag 2005-04-14 13:40

added an error reporting method which does not throw an exception

13 lines of code changed in:

blackdrag 2005-04-14 12:57

little modifications for the scope visitor

4 lines of code changed in:

blackdrag 2005-04-14 12:57

now checks class nodes of superclasses

65 lines of code changed in:

blackdrag 2005-04-14 11:34

some formatting

32 lines of code changed in:

blackdrag 2005-04-14 11:28

some reformatting

2 lines of code changed in:

blackdrag 2005-04-14 10:33

helper for the asm:verify task

184 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/ant: VerifyClass.java (new 184)
blackdrag 2005-04-14 10:11

removed comment

1 lines of code changed in:

blackdrag 2005-04-14 10:03

visitor support for catch statements

1 lines of code changed in:

blackdrag 2005-04-14 09:46

a first try to implement some simple scope checks and some modified tests

954 lines of code changed in:

jstrachan 2005-04-14 09:36

added old test case

58 lines of code changed in:

jrose 2005-04-13 22:45

More bug fixes and grammar cleanups.

Full notes are here: http://docs.codehaus.org/display/GroovyJSR/2005/04/13/grammar+notes

No regressions on the 4 UberTestCase suites.

226 lines of code changed in:

alang 2005-04-13 22:11

Added asBool conversion for Strings: convert empty strings to false, and non-empty strings to true.

54 lines of code changed in:

jstrachan 2005-04-13 15:15

attempted fix for GROOVY-670 to try to use a given classloader, if it can load groovy classes - otherwise default to the local loader

13 lines of code changed in:

jstrachan 2005-04-13 12:14

refactor to allow the AST to lazily generate a variable scope

95 lines of code changed in:

fraz 2005-04-13 08:40

GROOVY-601: still finding out the correct way to use of PsiBuilder in GroovyPsiRecognizer (work in progress)

67 lines of code changed in:

jez 2005-04-13 00:02

* Added a <groovy> ant task

- this will execute supplied groovy code inlined within the build.xml

- this is intended to also be allowed to accept <groovy src="Foo.groovy"/> [not implemented yet]

- also intend to allow filesets to be traversed, applying the groovy script to each file (groovy -p -i -e style)



e.g. of current implementation...





<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="my.classpath"/>



<groovy>

println "hello world"

</groovy>





Enjoy



jez.

407 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/ant: Groovy.java (new 407)
jstrachan 2005-04-12 17:38

applied bug fixes that Bill Pugh kindly found for us via the excellent tool, FindBugs.sf.net

78 lines of code changed in:

jstrachan 2005-04-12 16:05

Moved the classic parser out into a separate module (groovy/modules/classic) to avoid distributing code with folks using the JSR. Moved the old classic test cases over too to avoid us getting mixed up.

39241 lines of code changed in: