Class GeneratedFile
java.lang.Object
net.agilhard.maven.plugins.jpacktool.base.template.GeneratedFile
public class GeneratedFile
extends java.lang.Object
File to be generated by freemarker.
-
Constructor Summary
Constructors Constructor Description GeneratedFile(freemarker.template.Configuration cfg, java.util.Map model, java.lang.String templateName, java.io.File outputFile)
Creates a file to be generated. -
Method Summary
Modifier and Type Method Description void
generate()
Generates the file.
-
Constructor Details
-
GeneratedFile
public GeneratedFile(freemarker.template.Configuration cfg, java.util.Map model, java.lang.String templateName, java.io.File outputFile)Creates a file to be generated.- Parameters:
cfg
- the freemarker configurationmodel
- the freemarker modeltemplateName
- the name of the freemarker templateoutputFile
- the output file
-
-
Method Details
-
generate
public void generate() throws java.io.IOException, freemarker.template.TemplateExceptionGenerates the file.- Throws:
java.io.IOException
- if writing to file failedfreemarker.template.TemplateException
- if some template error
-