Hi Lofi,
--- Ursprüngliche Nachricht --- Datum: 01.03.2004 07:06 Von: Lofi Dewanto <[EMAIL PROTECTED]> An: [EMAIL PROTECTED] Betreff: Re: [Andromda-user] Manipulating the outputPattern > Hi Matthias, > > yes, this is great, cannot wait to see the newest version of AndroMDA! Have a look at this place where the new feature is already used: http://cvs.sourceforge.net/viewcvs.py/andromda/cartridges/andromda-meta/src/META-INF/andromda-cartridge.xml?rev=1.2.2.8&only_with_tag=V3x_MMD&view=auto You will see that the stereotype is now a separate XML element, not an attribute of the template element any more. This allows a template definition to trigger on more than one stereotype which meets your initial requirement about stereotype mapping that you mentioned in your other email message to Wouter about bpm4struts. So, we would like you to add your own stereotype elements to the reformatted cartridge descriptor (andromda-cartridge.xml) of bpm4struts (once released). > Anyway, I'll go watch your sessions at JAX 2004 (I'll be there as well). That's great! Here, I can give you a glimpse of what we're gonna do there: * I'll give a very very short intro to MDA itself. * Peter Friese from Lufthansa Systems will tell about his experience with AndroMDA 2.x in their real-world projects. * Peter and I will interactively speak about the lessons learned with AndroMDA 2.x. He'll tell what the problem was and I'll always show the differences in AndroMDA 3.0 which will help the user out of the problematic situation. I think, that way, the audience can learn from practical experience which is always much better than learning from theory or from a "list of new features". :-) > Thanks a lot! Have a nice day! Matthias -------- > > Matthias Bohlen wrote: > > > >> Hi Lofi, > >> > >> in the latest CVS version (V3x_MMD branch), I have implemented a new > >> feature: dynamically calculated output file names. It works like this: > >> You calculate your file name inside the Velocity template and assign it > >> to an arbitrary variable, say $myOutputFile: > >> > >> #set ($myOutputFile = ${class.someTrickyProperty}) > >> #set ($myOutputFile = ${myOutputFile.replaceAll('\.', '/')}) > >> #set ($myOutputFile = "$.jsp") > >> > >> Then, in the cartridge descriptor, you would write > >> > >> <template > >> stereotype="FrontEndView" > >> sheet="templates/StrutsJSP.vsl" > >> outputPattern="$myOutputFile" > >> ... > > >> > >> Would this work for you? ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user