plugin design question

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
smoking crack.

Thanks for reading,

3 comments

Charles Eubanks wrote:

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).


Well, I hesitate to say since you seem to want to stay away from ant ;)
- but the ant integration within IDEA allows you to trigger ant tasks
before or after compilation (and before run/debug). (Right click on the
ant task, select execute on)
It could be a tiny ant script anyway - not more complex than the script
you have now...

Regards,
Edwin

0

Hmmm, that sounds potentially like a really good reason I don't need a
plugin for this. :)

thanks,

"Edwin van Ouwerkerk Moria" <edwin@cadwal.org> wrote in message
news:ch6fq2$god$1@is.intellij.net...

Charles Eubanks wrote:

>

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).

>

Well, I hesitate to say since you seem to want to stay away from ant ;)
- but the ant integration within IDEA allows you to trigger ant tasks
before or after compilation (and before run/debug). (Right click on the
ant task, select execute on)
It could be a tiny ant script anyway - not more complex than the script
you have now...

>

Regards,
Edwin



0

charles wrote:

>>>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
>>- but the ant integration within IDEA allows you to trigger ant tasks
> Hmmm, that sounds potentially like a really good reason I don't need a
> plugin for this. :)

;) I'm afraid that it also makes it rather unlikely that someone will
actually write a separate plugin to do it.

Anyway, I sort of use this approach in most of my projects - I do have a
'full' build ant script, but one or two tasks (code generation by
xdoclet, usually) are triggered by the IDEA build cycle. Best of both
worlds: don't need IDEA for a full build, but if I want to, I can.

Regards,
Edwin

0

Please sign in to leave a comment.