public class VelocityTemplateGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.velocity.app.VelocityEngine |
engine |
protected org.apache.maven.project.MavenProject |
mavenProject |
protected org.apache.velocity.Template |
velocityTemplate |
| Constructor and Description |
|---|
VelocityTemplateGenerator(org.apache.maven.project.MavenProject mavenProject,
URL template) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPropertiesToContext(Properties properties,
org.apache.velocity.VelocityContext context) |
void |
generate(Properties context,
File outputFile) |
void |
generate(Properties context,
Writer writer) |
protected org.apache.velocity.app.VelocityEngine engine
protected org.apache.maven.project.MavenProject mavenProject
protected org.apache.velocity.Template velocityTemplate
public VelocityTemplateGenerator(org.apache.maven.project.MavenProject mavenProject,
URL template)
throws URISyntaxException
URISyntaxExceptionpublic void generate(Properties context, Writer writer) throws Exception
Exceptionpublic void generate(Properties context, File outputFile) throws Exception
Exceptionprotected void addPropertiesToContext(Properties properties, org.apache.velocity.VelocityContext context)
Copyright © 2009-2012 CodeLutin. All Rights Reserved.