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 = "${myOutputFile}.jsp")

Then, in the cartridge descriptor, you would write

<template
  stereotype="FrontEndView"
  sheet="templates/StrutsJSP.vsl"
  outputPattern="$myOutputFile"
... >

Would this work for you?


That looks like a great feature! Can't wait to start using that!

-Neal


------------------------------------------------------- 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_id=1356&alloc_id=3438&op=click _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to