November 2005 Commit Log

Number of Commits:
163
Number of Active Developers:
10
graeme 2005-11-30 11:23

tests to try out class reloading with GCL

9 lines of code changed in:

tug 2005-11-29 20:10

Add an interface(MOP) which defines which methods are in the new Meta Object Protocol

258 lines of code changed in:

tug 2005-11-29 17:38

Force an OK result in the simpel HTTP server



We need to make this nicer in later versions.

66 lines of code changed in:

graeme 2005-11-29 17:04

replaced backslashes with forward slashes to fix problems with build on Linux

0 lines of code changed in:

  • groovy/modules/grails/bin: grails (changed)
graeme 2005-11-29 16:51

Changed call to getValue to use get method

1 lines of code changed in:

tug 2005-11-28 19:19

An experimental simple HTTP server:



s = new HTTPServer()

s.get = {inn, out, uri, version -> out << "my page"}

s.startServer(new ServerSocket(1234))



You can set closures fro get, put, head and post.

167 lines of code changed in:

  • groovy/modules/xmlrpc/src/main/groovy/net/http: HTTPServer.java (new 167)
tug 2005-11-28 16:11

Add depthFirst() whic returns an iteratore over all the nodes in the tree. The iteration is lsft to right starting with the deepest node.



f."**" is equivalent to f.depthfirst()

45 lines of code changed in:

  • groovy/groovy-core/src/main/groovy/util/slurpersupport: GPathResult.java (+45 -1)
russel 2005-11-28 14:53

Added the GROOVY-674 test into the suite.

1 lines of code changed in:

russel 2005-11-28 13:29

Added a unit test to codify issues from GROOVY-674.

55 lines of code changed in:

russel 2005-11-28 08:28

Updated to ASM 2.2 and Ant 1.6.5.

15 lines of code changed in:

dierk 2005-11-27 22:45

marked the readLine() bug with a comment. no code changed

1 lines of code changed in:

tug 2005-11-27 13:37

support arrays of primative types too

129 lines of code changed in:

tug 2005-11-27 13:12

Add support for BigInteger and Long

51 lines of code changed in:

tug 2005-11-27 12:59

Support arraus of objects (String, Integer, etc)

also fix problem with Character parameters

53 lines of code changed in:

tug 2005-11-27 12:23

Tidy up prior to adding array support

62 lines of code changed in:

tug 2005-11-25 10:21

remove the boolean results for set attribute/property when they would throw execeptions if there was no attribute or property

2 lines of code changed in:

tug 2005-11-24 10:38

Fix typo bod -> body

1 lines of code changed in:

tug 2005-11-24 10:13

Fix problem when there is no body to an element - used to throw NPR

3 lines of code changed in:

blackdrag 2005-11-23 16:38

use redirects to commpare only the real class nodes

4 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/ast: ClassNode.java (+4 -4)
blackdrag 2005-11-23 16:20

only use abstract methods when asking for abstract methods

3 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/ast: ClassNode.java (+3 -1)
blackdrag 2005-11-23 16:13

wrong startup for abstractness test corrected

2 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/ast: ClassNode.java (+2 -1)
blackdrag 2005-11-23 16:02

less carefull building of the list with abstract methods to allow some sdks to do nasty things

15 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/ast: ClassNode.java (+15 -1)
dierk 2005-11-23 13:46

temporarily added the pageFlow visualization for sharing it

0 lines of code changed in:

jez 2005-11-22 20:21

Added last line/col info to the Groovy AST

22 lines of code changed in:

graeme 2005-11-22 16:38

added configuration of Spring messageSource

7 lines of code changed in:

  • groovy/modules/grails/src/commons/org/codehaus/groovy/grails/commons/spring: SpringConfig.java (+7 -4)
graeme 2005-11-22 16:37

added creation of messages.properties in a i18n directory for placing validation error messages

7 lines of code changed in:

  • groovy/modules/grails/src/grails: build.xml (+7 -2)
graeme 2005-11-22 16:24

Added support for applying simple constraints related to the view

76 lines of code changed in:

graeme 2005-11-22 16:12

added constraints property as a domain class property

3 lines of code changed in:

graeme 2005-11-22 14:55

updated save persistent method to perform validation by default and test cases to reflect this

45 lines of code changed in:

graeme 2005-11-22 14:47

more tests for validate method

26 lines of code changed in:

graeme 2005-11-22 14:47

refactored and moved into more generic package as it contains a mix of persitent and non persistent dynamic methodsd now

16 lines of code changed in:

graeme 2005-11-22 14:47

Changed to use the metaclass to set the errors and hasErrors properties

7 lines of code changed in:

graeme 2005-11-22 14:44

updated to implement a WeakHashMap mechanism for storing relationships between instances and properties so that it can be used globally within the meta class

35 lines of code changed in:

graeme 2005-11-22 13:39

fixed support for Hibernate HQL queries in finder methods, add validation of queries, added support for query parameters and restriction of max results

198 lines of code changed in:

graeme 2005-11-22 11:19

Implemented loadGroovySource method in GroovyResourceLoader

29 lines of code changed in:

graeme 2005-11-22 11:10

Implemented loadGroovySource method in GroovyResourceLoader and added additional debugging calls

23 lines of code changed in:

graeme 2005-11-22 11:09

Changed to extend MetaClassImpl following changes in groovy-core

3 lines of code changed in:

graeme 2005-11-22 11:08

path updates to reflect change of jar

3 lines of code changed in:

graeme 2005-11-22 11:08

updated to latest groovy jar

0 lines of code changed in:

blackdrag 2005-11-22 01:00

give the script resolving a hint if the loading of a class failed, but a script may have success

4 lines of code changed in:

glaforge 2005-11-22 00:55

Updated to use the latest version of Groovy: JSR-04.

1 lines of code changed in:

glaforge 2005-11-22 00:54

JSR-05-SNAPSHOT version

1 lines of code changed in:

glaforge 2005-11-21 21:58

Start of the JSR-04 release

6 lines of code changed in:

glaforge 2005-11-21 21:10

GROOVY-1154: implement output << input for streams

24 lines of code changed in:

tug 2005-11-21 18:29

change the name of the aetEntityResolver(URL) to setEntityBaseUrl

1 lines of code changed in:

tug 2005-11-21 17:19

Add setEntityResolver(URL).

This uses the URL as the bas to resolve relative URLs

15 lines of code changed in:

jez 2005-11-21 16:18

A new proposal for the layout of the Groovy Language Specification,

taking into account the copyright concerns of the Java Language Specification

and hopefully making a document that can be read both without

reference to the Java Language Specification, and with for further detail.

160 lines of code changed in:

jez 2005-11-21 16:12

Fix for http://jira.codehaus.org/browse/GROOVY-1151



Uses explicit LF character for non bat files, rather

than the odd fixcrlf defaults for 'unix' which on

OSX seem to be CR rather than LF.

1 lines of code changed in:

tug 2005-11-21 08:55

Change the definition of invokeXMethod and invokeXConstructor so that id the metaclass doesn't call the method or constructor then it returns the actual parameters to be used by the bytecode call.

Make sure that freash Class arrays are used by the helper methods.

40 lines of code changed in:

glaforge 2005-11-21 01:40

GROOVY-1147: Workaround fix for checking mod time for file:// URL

52 lines of code changed in:

blackdrag 2005-11-21 01:40

Little fix to rpevent NPEs in cases where the ast building is not possible. The error reporting will tell then why it was not possible

3 lines of code changed in:

glaforge 2005-11-21 01:29

GROOVY-1102: fix a badly formatted dependency on mockobjects.

2 lines of code changed in:

glaforge 2005-11-21 01:18

GROOVY-1094: applying patch from Kenji Nakamura to use the "root.maven" classloader for GroovyShell in the Groovy Ant task when it's used within Maven.

25 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/ant: Groovy.java (+25 -17)
glaforge 2005-11-21 01:03

GROOVY-1145: change the signature of GRL#loadGroovyFile() to GRL#loadGroovySource. This method will now return a URL instead of a File which may be too restrictive under certain circumstances (like loading Groovy sources from JARs, etc).

112 lines of code changed in:

blackdrag 2005-11-21 00:34

adding testcase for groovy-932

10 lines of code changed in:

blackdrag 2005-11-21 00:21

adding tests for primitive types

11 lines of code changed in:

blackdrag 2005-11-20 23:58

test to avoid regression of Groovy-726

32 lines of code changed in:

glaforge 2005-11-20 23:37

Upgraded ASM's core dependency to ASM 2.1.

1 lines of code changed in:

tug 2005-11-20 16:08

Change the contract with the invokeXmethod and invokeXconstructor methods so that they return the argumantTypes array now contains all the information needed to choose which method to call when the MetaClass delegates that task to the caller.

43 lines of code changed in:

blackdrag 2005-11-19 22:22

cleaner version of GCL#getLoadedClasses

10 lines of code changed in:

tug 2005-11-19 18:27

First attempt to create a new MetaClass capable of supporting Java name resolution rules more closely than the existing MetaClass

362 lines of code changed in:

graeme 2005-11-18 19:22

ported show.jsp to use GvTags

17 lines of code changed in:

  • groovy/modules/grails/samples/blog/grails-app/views/blog: show.jsp (+17 -21)
graeme 2005-11-18 19:21

added gvtags tld

0 lines of code changed in:

  • groovy/modules/grails/src/war/WEB-INF/tld: gvtags.tld (new)
graeme 2005-11-18 19:18

added GvTags taglib to web.xml

8 lines of code changed in:

graeme 2005-11-18 19:18

added GvTags jar and tld to build

3 lines of code changed in:

  • groovy/modules/grails/src/grails: build.xml (+3)
graeme 2005-11-18 19:17

added support for GvTags

0 lines of code changed in:

blackdrag 2005-11-18 17:35

change false return in script resolving to return true if the type is resolved by the classloader and false else

3 lines of code changed in:

blackdrag 2005-11-18 17:25

enables classloading again

2 lines of code changed in:

blackdrag 2005-11-18 17:21

As many people had problems because classes are compiled twice I changed the logic when a script is compiled. It is now only compiled if there is no class of that name or if there is such a class, then the script is only compiled if the class's classloader is not the working classloader and the class's timestamp is older than the file's lastModified information

36 lines of code changed in:

blackdrag 2005-11-17 23:25

fixed bug in sorting

10 lines of code changed in:

blackdrag 2005-11-17 22:15

adding SourceUnit

4 lines of code changed in:

blackdrag 2005-11-17 22:05

this let's the classloader choose the class returned for parseClass a little bit more carefully. The classgen step now gets the ClassNode in a sorted order to avoid defining a class that extends a class that is later defined.

72 lines of code changed in:

graeme 2005-11-17 18:29

changed to use array index to look-up parameter instead of unecessary additional method call

5 lines of code changed in:

graeme 2005-11-17 18:26

changed to test setup configuration programmatically

38 lines of code changed in:

graeme 2005-11-17 18:22

updated for change to DefaultGrailsApplication constructor

3 lines of code changed in:

graeme 2005-11-17 18:19

added setter for grails application so that the test case doesn't fail!

11 lines of code changed in:

graeme 2005-11-17 18:12

latest blog sample app

7 lines of code changed in:

graeme 2005-11-17 18:07

updated domain class test for retrieving the otherside of relationships

23 lines of code changed in:

graeme 2005-11-17 18:05

Fixed problem where bidirectional one-to-manys where not being mapped correctly causing the relationships to not be retrieved when querying

51 lines of code changed in:

  • groovy/modules/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg: GrailsDomainBinder.java (+51 -16)
graeme 2005-11-17 18:04

added MySQL to hibernate dialect detection

2 lines of code changed in:

  • groovy/modules/grails/src/commons/org/codehaus/groovy/grails/commons/spring: SpringConfig.java (+2)
graeme 2005-11-17 18:03

updated get property type method is use assignable from so subclasses or concrete are matched

6 lines of code changed in:

graeme 2005-11-17 18:02

added class loader to constructor and implemented resolving of the otherside of relationships between domain classes

25 lines of code changed in:

graeme 2005-11-17 18:00

Added method to retrieve the otherside of a bidirectional relationship

51 lines of code changed in:

tug 2005-11-16 14:19

Allow the user to get and set the EntityResolver, DTDHandlerand ErrorHandler and to get/set Properties and Freatures.



This is done by providing delegated calls to the approprate method on the XMLReader used to parse the XML document

78 lines of code changed in:

blackdrag 2005-11-16 00:44

this patch enables groovy to recognize "void" as class when it is used as class. For example "println void.class"-

It tries to avoid adding a proeprty multiple times to a ClassNode. And it tries to improve the handling of inner classes when not imported using a fqn

63 lines of code changed in:

graeme 2005-11-15 17:32

changed to create a new Groovy controller for each request

3 lines of code changed in:

tug 2005-11-15 17:20

Fix problem when the element of the lhs was null and the same elamane of the rhs was not.

Fix problem when lements of the Lists were themselves Lists.

Tidy code.

28 lines of code changed in:

graeme 2005-11-15 16:38

added option to choose where the meta class gets registered in the meta class registry or not

29 lines of code changed in:

graeme 2005-11-15 16:36

changed to return a read-only map of constraints

3 lines of code changed in:

glaforge 2005-11-14 23:54

Upgraded ASM dependency to ASM 2.1.

Fixed JarJar's groupId and upgraded to 0.6.

11 lines of code changed in:

graeme 2005-11-14 19:04

added tracing calls

31 lines of code changed in:

graeme 2005-11-14 19:04

adding setting of grails context so fix reloading grails app twicebug

1 lines of code changed in:

graeme 2005-11-14 19:02

removed validate on blog

3 lines of code changed in:

graeme 2005-11-14 19:02

updated bootstrap class

16 lines of code changed in:

graeme 2005-11-14 15:46

Correct a few things with blog sample app

78 lines of code changed in:

graeme 2005-11-14 15:45

Updated to parse Long from Number instances

2 lines of code changed in:

  • groovy/modules/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass: GetPersistentMethod.java (+2 -2)
graeme 2005-11-14 14:49

changed validate to return false when not valid (obviously!)

17 lines of code changed in:

dierk 2005-11-14 14:49

second version of the icon that has a transparent background instead of the white one. This makes it look much nicer, e.g. on the windows desktop.

0 lines of code changed in:

graeme 2005-11-14 13:09

updated blog sample up with some constraints to test validation

51 lines of code changed in:

graeme 2005-11-14 13:07

updated build to copy properties files into jar for validation default messages

6 lines of code changed in:

graeme 2005-11-14 13:07

updated build to copy new jars for validation

2 lines of code changed in:

  • groovy/modules/grails/src/grails: build.xml (+2)
graeme 2005-11-14 13:06

moved configuration of validator in SpringConfig

61 lines of code changed in:

graeme 2005-11-14 13:05

Updated so that it is configured by Spring

34 lines of code changed in:

graeme 2005-11-14 13:04

fixed bug where it was reloading the whole grails app on every request and hence resetting the in memory database (woops)

17 lines of code changed in:

graeme 2005-11-14 13:04

moved setting of "invalid" suffix out of base class and into subclasses as it is not always appropriate for every constraint

26 lines of code changed in:

graeme 2005-11-14 13:03

adding setter for validator of a domain class

30 lines of code changed in:

dierk 2005-11-13 20:47

updated commons-httpclient to version 3.0-rc3; it seems it's only used in the examples and those work with the updated versions. The newer version is needed for using Groovy with HtmlUnit and Canoo WebTest, e.g. for testing Grails.

1 lines of code changed in:

dierk 2005-11-13 20:44

fixed problem with moved XmlSlurper package

1 lines of code changed in:

glaforge 2005-11-13 18:35

Change the event handler class name so that no duplicate classes exist at the same time.

12 lines of code changed in:

  • groovy/modules/scriptom/src/main/org/codehaus/groovy/scriptom: EventSupport.java (+12 -3)
fraz 2005-11-13 18:24

Housekeeping: Updated groovy.psi.g to reflect the recent changes made to groovy.g in groovy-core

1 lines of code changed in:

  • groovy/ide/groovyj/src/java/org/codehaus/groovy/intellij/language/parser: groovy.psi.g (+1 -1)
blackdrag 2005-11-13 17:52

ResolveVisitor added

638 lines of code changed in:

blackdrag 2005-11-13 17:42

this committ removes the class org.codehaus.groovy.ast.Type completely and transferes its functuanality to ClassNode and ClassHelper. A ClassNode can now be a primitive type or any other type created with an class file available. ClassNodes can now be primary, which means they are the a result of a class definiton in a file - unlike a ClassNode created from a Class. All phases till actual class creation should work on ClassNode instead of Class. So all Class handling code in ACG is transformed to ahndle ClassNode instead. A ClassNode can contain a redirect now. This is used when multiple names point to the same ClassNode. This mechanism was used instead of a replacing like with the Type class. This was needed because all class resolving code is tra