Darryl Pentz
2007-04-27 04:15:12 UTC
I want to write a script (or scripts) that can generate randomized data for my application so that my dev environment (and test as well) approximates "real world" data. It will create various users, create x number of domain objects, all using fake "seed" data which I provide to the script, and randomize as needed.
Since I'll be using Lucene, I want to have a good word distribution so that the searches can be more real-world'ish. So my idea there is to use random sections of the "Lorem ipsum" text.
Anyway, the challenge for me right now, given my newness with Grails is how to hook into the underlying Grails infrastructure so that Grails automatically provides my desired datasource (dev or test, depending on what I'm doing), maybe injects some needed objects etc.
So I'm looking for some pointers at existing Groovy scripts to look at for this. Or any ideas people might have on where to draw some inspiration for this. I looked at some of the Grails scripts in the Grails /scripts folder, and they provide a few clues in terms of bootstrapping etc. But any advice, feedback would be appreciated from those of you more familiar with the inner workings of Grails.
Regards,
Darryl
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
Since I'll be using Lucene, I want to have a good word distribution so that the searches can be more real-world'ish. So my idea there is to use random sections of the "Lorem ipsum" text.
Anyway, the challenge for me right now, given my newness with Grails is how to hook into the underlying Grails infrastructure so that Grails automatically provides my desired datasource (dev or test, depending on what I'm doing), maybe injects some needed objects etc.
So I'm looking for some pointers at existing Groovy scripts to look at for this. Or any ideas people might have on where to draw some inspiration for this. I looked at some of the Grails scripts in the Grails /scripts folder, and they provide a few clues in terms of bootstrapping etc. But any advice, feedback would be appreciated from those of you more familiar with the inner workings of Grails.
Regards,
Darryl
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email