One product I work on is a set of webapps that run on multiple
appservers and each appserver has different dtd/jsp version requirements
for the <DOCTYPE.../> at the top of the web.xml. Currently we defer the
setting of the DOCTYPE to our installer since only it knows where the
webapp will wind up. AND, the web.xml file as it comes out of version
control is not valid becase the DOCTYPE has replacement targets rather
than the actual jsp version / dtd. I have a little script that performs
the DOCTYPE fixup for my own work (eg it does a search/replace on the
file) and it is integrated into IDEA using external tools so I have a
menu item/hotkey for it. But, now, I want to hook this into my build
process; I could do this in ant but I mostly try to stay away from
ant when I can.
SO, what I would be nice is the ability to hook an action (my little
script) to occur either immediately before or after a module build.
This seems like it ought to be a useful plugin (and not just for me).
Is this doable? Does it seem worthwhile -- relative to moving to ant
for this type of thing? Any advice before I start really getting down
to the business of implementing my first plugin? Let me know if I am
Thanks for reading,