Using XDoclet on Large Projects
Kurt emerges from his sabbatical (12 days is a long time in blogsphere) and mentions a little tidbit I'd like to comment on:
Last week I attending a TC JUG meeting where the topic was Struts 1.1: The Good, the Bad and the Ugly.
...
Interestingly the speaker didn't like XDoclet because he felt that on large development teams the config files should be managed outside of the source code during the design phase. Since I have never worked on a large team (not that I won't want to) I don't know if his concern is valid. Interesting comment though.
(I added the bold.) First of all, I have only recently (last 6 months) found XDoclet, and all the projects I've been on (in my entire life) have always had less than 5 coders. I've been on teams as large as 20, but the module I was working on never involved everyone. In my experience, the design phase never really consists of writing very much code or configuration, but rather a bunch of UML diagrams and static HTML prototypes.
I have found (in my brief work on struts-xdoclet) that I need to change values in my web.xml
to test different settings (i.e. a servlet's init-param). However, since I'm coding some of these values in my classes, in order to change and test, I have to re-compile and deploy. Of course, I could just change the values in web.xml
after I've deployed, but that's just a workaround.
A better solution, which I hope to implement, is to put certain values in my classes as tokens (i.e. @encrypt-password@) and then I can use Ant's replace task to specify this value from the command line. That way, I can set the default in my build.xml
file and change it by either 1) specifying the property in build.properties
, or 2) specifying it from the command line (i.e. ant -Dencrypt-password=true
).
I'd be very interested in hearing anyone's war stories on this topic (managing config files in a large team).
Posted by Dmitri Colebatch on November 27, 2002 at 09:03 PM MST #
Posted by Matt Raible on November 27, 2002 at 10:38 PM MST #