Class GeneratedFile

java.lang.Object
org.tentackle.maven.GeneratedFile

public class GeneratedFile extends Object
File to be generated by freemarker.
  • Constructor Details

    • GeneratedFile

      public GeneratedFile(freemarker.template.Configuration cfg, Map model, String templateName, File outputFile)
      Creates a file generator.
      Parameters:
      cfg - the freemarker configuration
      model - the freemarker model
      templateName - the name of the freemarker template
      outputFile - the output file
  • Method Details

    • generate

      public void generate() throws IOException, freemarker.template.TemplateException
      Generates the file.
      Throws:
      IOException - if writing to file failed
      freemarker.template.TemplateException - if some template error