ok I understand your point. One way to make it more flexible then could be to add some merge points into the template, like you have for the jsp precompile. Then it is easy to add whatever modifications to the web.xml.
The mergeLocation seams very useful and I will definitly make use of this but I believe this one is quite general so it would be good if it could be included in the general dist. If I make a patch against the current cvs version, is that something you would be interested of including?
Best regards
Sverker
----- Original Message ----- From: "Wouter Zoons" <[EMAIL PROTECTED]>
To: "'Sverker Abrahamsson'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, November 28, 2004 8:45 PM
Subject: RE: [Andromda-user] bpm4struts improvement
Hello Sverker,
The reasons I dropped webdoclet from the build process is mostly to avoid the dependency and like you mentioned, the speed of the build process. Secondly it is also much easier this way to tune the generated files, we don't need to wait for the xdoclet team in order to get a feature.
The generated files are in fact so straightforward that it's more difficult
to get the xdoclet tags right than to generate those files directly using
the cartrdidge (a good example would be the validation.xml)
You should still be able to do everything you want, instead of having a
merge file for each web.xml fragment you can now simply override the web.xml
template resource in the cartridge, here's how to do it:
http://team.andromda.org/docs/andromda-cartridges/index.html#mergeLocation
Try it out, I'm sure you'll see how easy it is and how to build process for
using bpm4struts can be simplified.
-- Wouter
Ps: we're thinking about doing the same with ejbdoclet, but since those
templates are far more complex than the ones from webdoclet we decided to
stick with them; the things I mentioned for webdoclet don't really apply on
ejbdoclet because for it's more likely to generate an erronous ejb-jar.xml
-----Original Message----- From: [EMAIL PROTECTED] [mailto:andromda-user- [EMAIL PROTECTED] On Behalf Of Sverker Abrahamsson Sent: Sunday, November 28, 2004 8:26 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [Andromda-user] bpm4struts improvement
Hi Wouter, what is the reason for not running webdoclet? With M2 I was running a customized web/build.xml (attached) which gave big flexibility to add any other setting that I could not get into the model. E.g. I have a tag lib for my application which needed to be added when webdoclet merged together the different fragments, I don't see any way to get it in now.
Are there any benefits for the current procedure except for speed when building? /Sverker
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 08, 2004 1:26 PM Subject: [Andromda-user] bpm4struts improvement
hello,
once again a relatively serious change has been applied to bpm4struts, this time the UML modeling rules for the cartridge do not change (fortunately), but the set of generated files is extended with struts-config.xml and validation.xml, the xdoclet annotations have been removed from the forms and the actions
this means you will no longer need to have the webdoclet task running on the generated sources, the ant-tool and the maven plugin have also been updated to reflect this change
this update should be available in the next nightly-build (8 hours from now)
good luck -- Wouter
ps: if for some reason I missed something during the move to this new feature please let me know, I will fix it asap! I have tested it using the samples and everything seems to be fine.
__________________________________________________________________
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user