Wednesday, 18 May 2011 11:58

WebObjects: Clean your project if you have modified any resources

Written by  Kamal Shah
Rate this item
(0 votes)
I was working on a WebObjects project that needed some reports for which I was using ReportMill. Now the ReportMill templates are to be kept in the Resources folder of the WOLips project (I use Eclipse/WOLips/Project Wonder - is there any WO developer out there that does not use this combo? Please send me an email!!!).

First cut at the reports - obviously it wouldn't work. I thought I had figured out the problem (the object that you actually pass to the report wasn't bound correctly to the table in the template) and fixed it. Tried it again. No luck. Made some more changes. Nope. Started the template from scratch. Nothing.

Then I don't know what struck me. I cleaned the project. Voila! It worked. I had forgotten an important WOLips (Eclipse?) rule. Clean your project when you modify your resources. The build system figures out whenever you have changed your java files and auto-compiles and uses the latest. Not so for the resources. It does not by default check if the resources are modified and includes them afresh. You need to clean the project and then the new files will be picked up.

I am sure there must be a simpler way to get the latest resources to be picked up every time! Anybody?

... http://www.kamaldshah.com/2011/05/webobjects-clean-your-project-if-you.html

Kamal Shah

Kamal Shah

Hello, I'm Kamal from Hyderabad, India. I have been on dialysis for the last 13 years, six of them on PD, the rest on hemo. I have been on daily nocturnal home hemodialysis for the last four and half years. I can do pretty much everything myself. I love to travel and do short weekend trips or longer trips to places which have dialysis centers. Goa in India is a personal favorite. It is a great holiday destination and has two very good dialysis centers.

E-mail: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
back to top