Package org.tentackle.maven
Class AbstractGenerator
- java.lang.Object
-
- org.tentackle.maven.AbstractGenerator
-
public class AbstractGenerator extends Object
Base class for generators.
-
-
Constructor Summary
Constructors Constructor Description AbstractGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.ConfigurationcreateFreemarkerConfiguration()Creates the freemarker configuration.org.apache.maven.plugin.logging.LoggetLogger()Gets the maven logger.FilegetTemplateDirectory()Gets the freemarker template directory.voidsetLogger(org.apache.maven.plugin.logging.Log logger)Sets the maven logger.voidsetTemplateDirectory(File templateDirectory)Sets the freemarker template directory.
-
-
-
Method Detail
-
getTemplateDirectory
public File getTemplateDirectory()
Gets the freemarker template directory.- Returns:
- the template directory
-
setTemplateDirectory
public void setTemplateDirectory(File templateDirectory)
Sets the freemarker template directory.- Parameters:
templateDirectory- the template directory
-
getLogger
public org.apache.maven.plugin.logging.Log getLogger()
Gets the maven logger.- Returns:
- the logger
-
setLogger
public void setLogger(org.apache.maven.plugin.logging.Log logger)
Sets the maven logger.- Parameters:
logger- the logger
-
createFreemarkerConfiguration
public freemarker.template.Configuration createFreemarkerConfiguration() throws IOExceptionCreates the freemarker configuration.- Returns:
- the config
- Throws:
IOException- if there's some trouble with the template directory
-
-