I want to set up an maven plugin that will take a few freemarker templates, and expand each one several times, each time with a different set of input values. Is there any better way to do this with fmpp that brute force processing them over and over?
+1
A:
When you say set up a maven plugin, do you mean write your own?
If you want to just use fmpp with Maven and avoid writing a plugin you could do this:
Use the maven-antrun-plugin and process your files with a small snippet of Ant script using the fmpp Ant task (fmpp.sourceforge.net/ant.html). Combined with the ant-contrib task (ant-contrib.sourceforge.net/tasks/tasks/index.html) you should be able to loop quite easily over a set of files.
Peter Lynch
2009-12-19 05:44:39
I was going to write a plugin, yes.
bmargulies
2009-12-19 13:54:15