Class AbstractGenerator
java.lang.Object
org.tentackle.buildsupport.codegen.AbstractGenerator
Base class for generators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfreemarker.template.ConfigurationCreates the freemarker configuration.Gets the freemarker template directory.voidsetTemplateDirectory(File templateDirectory) Sets the freemarker template directory.
-
Constructor Details
-
AbstractGenerator
public AbstractGenerator()
-
-
Method Details
-
getTemplateDirectory
Gets the freemarker template directory.- Returns:
- the template directory
-
setTemplateDirectory
Sets the freemarker template directory.- Parameters:
templateDirectory- the template directory
-
createFreemarkerConfiguration
Creates the freemarker configuration.- Returns:
- the config
- Throws:
IOException- if there's some trouble with the template directory
-