Package org.tentackle.maven
Class GeneratedFile
- java.lang.Object
-
- org.tentackle.maven.GeneratedFile
-
public class GeneratedFile extends Object
File to be generated by freemarker.
-
-
Constructor Summary
Constructors Constructor Description GeneratedFile(freemarker.template.Configuration cfg, Map model, String templateName, File outputFile)Creates a file generator.
-
-
-
Constructor Detail
-
GeneratedFile
public GeneratedFile(freemarker.template.Configuration cfg, Map model, String templateName, File outputFile)Creates a file generator.- Parameters:
cfg- the freemarker configurationmodel- the freemarker modeltemplateName- the name of the freemarker templateoutputFile- the output file
-
-
Method Detail
-
generate
public void generate() throws IOException, freemarker.template.TemplateExceptionGenerates the file.- Throws:
IOException- if writing to file failedfreemarker.template.TemplateException- if some template error
-
-