Package org.tentackle.maven
Class GeneratedFile
java.lang.Object
org.tentackle.maven.GeneratedFile
File to be generated by freemarker.
-
Constructor Summary
ConstructorsConstructorDescriptionGeneratedFile(freemarker.template.Configuration cfg, Map model, String templateName, File outputFile) Creates a file generator. -
Method Summary
-
Constructor Details
-
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 Details
-
generate
Generates the file.- Throws:
IOException- if writing to file failedfreemarker.template.TemplateException- if some template error
-