Class AbstractGenerator
java.lang.Object
net.agilhard.maven.plugins.jpacktool.base.template.AbstractGenerator
- Direct Known Subclasses:
AbstractTemplateToolMojo.TemplateGenerator
,JPacktoolMavenFileFilter.TemplateGenerator
public class AbstractGenerator
extends java.lang.Object
Base class for generators.
-
Constructor Summary
Constructors Constructor Description AbstractGenerator()
-
Method Summary
Modifier and Type Method Description freemarker.template.Configuration
createFreemarkerConfiguration()
Creates the freemarker configuration.void
setTemplateDirectory(java.io.File templateDirectory)
Sets the freemarker template directory.
-
Constructor Details
-
AbstractGenerator
public AbstractGenerator()
-
-
Method Details
-
setTemplateDirectory
public void setTemplateDirectory(java.io.File templateDirectory)Sets the freemarker template directory.- Parameters:
templateDirectory
- the template directory
-
createFreemarkerConfiguration
public freemarker.template.Configuration createFreemarkerConfiguration() throws java.io.IOExceptionCreates the freemarker configuration.- Returns:
- the config
- Throws:
java.io.IOException
- if there's some trouble with the template directory
-