Hacking Grails Source Day 3 (Where I Realize The Perils Of Not Clearing The Ivy Cache After Building)
My last post provided a recipe for downloading and modifying the Grails sources. I wrote that post immediately after I managed to get my deliberately introduced hack (an exception that stopped page rendering in its tracks) to manifest itself. Next I modified the hacked source slightly (changing the message passed to the RuntimeException constructor), and I got a little surprise: none of my changes seemed to take effect. Read the rest of this entry »
Building Grails 1.3.X from Source
I ran into a roadblock with GORM recently and I decided to try my hand at modifying the Grails sources to test out a possible fix. More on that later (if I get it to work.) For now, I figured I’d post a simple recipe the will enable you to (a) quickly build Grails from where it lives on github, and (b) start modifying the sources. Read the rest of this entry »
Setting up Intellij to Debug Into Grails / Spring / Acegi 3rd Party Source
While working on a project that made use of the Grails Acegi (Spring Security) plug-in I ran into some snags setting up my IDE so that I could debug into all the third-party source (including that of Grails, Spring and all of Spring’s dependent projects.) Read the rest of this entry »
When should we use the Grails flash ?
Recently one of my clients asked me when it was appropriate to use the Grails flash for storage. I mumbled something about how you should use it when you needed to store some information that lives beyond the current request, but only as long as the next request. Read the rest of this entry »
Using HSQLDB For Testing and Debugging Grails & Spring Hibernate Applications
This week I filled in for Andres Almiray to deliver a presentation to the first meeting of the
Silicon Valley Groovy / Grails User Group on the Yahoo campus (thanks for sponsoring us, Yahoo!) Andres had to cancel at the last minute, but hopefully we can get him to speak sometime in the near future. It wasn’t exactly standing room only,
but we had a good time. The presentation was on Using HSQLDB For Testing and Debugging Grails & Spring Hibernate Applications, and is available here. (I will be
improving it as time goes by.)
The Silicon Valley Groovy / Grails User Group Has Launched !
The Silicon Valley Groovy / Grails User Group is now officially launched. We’re looking for a venue for our monthly meeting now, and would also like to hear from potential speakers. More information is available here. Read the rest of this entry »
Finally Exorcised Windows from my Development Laptop
I’ve done some posting in the past about how nice Cygwin is if you find yourself forced to develop in a Windows environment. Even better than Cygwin is no Windows at all, a state which I finally achieved after my solid state drive crashed and I had to redo my system. As I was going about the task of installing Windows yet again I started asking myself if I really wanted to put up with Read the rest of this entry »
Another Selenium Presentation, With a Little Hudson Thrown In, at the SF Java User Group.
I’ll be doing another presentation (downloadable here) on how to test browser-based web applications using Selenium under Continuous Integration, this time at the San Francisco Java User Group. Read the rest of this entry »
Using Class Level Metadata to Allow Controller Actions to Opt Out of a Filter’s Processing
You will find an instance of the very handy GrailsApplication class injected into filters, plug-ins and other types of Grails components you may need to write. GrailsApplication has a method that allows you to get at the GrailsClass that wraps Grails artefacts, such as domain objects and controllers. Read the rest of this entry »
Use Logging Instead of println When Running Grails Integration Tests In IDEA.
Here’s one for my fellow IDEA users. Have you ever noticed that when you run Grails integration tests within Intellij IDEA that all of the output from println’s ends up in a file called target/test-reports/plain/{name-of-test} ? Read the rest of this entry »























