From: Wouter Z. <wz...@br...> - 2004-08-27 18:17:27
|
(1) custom-resources.properties is only generated once and server that purpose (2) yes, the generated code can use xdoclet to merge: http://xdoclet.sf.net <http://xdoclet.sf.net/> (3) postpone changing your jsps as long as possible -----Original Message----- From: and...@li... [mailto:and...@li...] On Behalf Of Sunondo Ghosh Sent: Friday, August 27, 2004 7:39 PM To: and...@li... Subject: [Andromda-user] Separating cutomizations from generated file I am trying to figure out a way by which I can keep adding new use cases to my bpm4struts model and regenerating the code, but at the same time customize some the generated files. Where I will face problems is with files will have extra data each time I add new use cases but are also the files that I need to customize. I'm looking for suggestions on how to manage this. Some of the files with this problem are: - Property files: As I add new fields or actions to the bpm4struts model, I want the property file to be generated for those. However, I may have customized some properties from a previously generated version of the file. Is there any easy way of merging the two versions, with my customizations overriding the generated version? - Struts-config.xml: I would like new additions in the model to generate additions to this file. However, I may need to add a few entries of my own manually. Again how can I merge the generated file with my new additions? - JSPs: I may need to make a few customizations to the generated JSPs. But as soon as I modify a generated JSP, I cannot regenerate it any more. So the generated file becomes disconnected from the model and the model is hard to maintain from then on. One option here is to use tiles but then also I need to customize the generated JSP to add a tile in the right location. I want to separate my customizations from the generated JSP so that I can keep adding more changes to the model and regenerating the JSP. Are there any good solutions to the above problems? Thanks, Sunondo |