org.nuiton.plugin
Class VelocityTemplateGenerator
java.lang.Object
org.nuiton.plugin.VelocityTemplateGenerator
public class VelocityTemplateGenerator
- extends Object
Generator of template base on velocity.
- Since:
- 1.3
TODO TC-20091011 should use plexus velocity component
- Author:
- tchemit
|
Field Summary |
protected org.apache.velocity.app.VelocityEngine |
engine
|
protected org.apache.maven.project.MavenProject |
mavenProject
|
protected org.apache.velocity.Template |
velocityTemplate
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
engine
protected org.apache.velocity.app.VelocityEngine engine
mavenProject
protected org.apache.maven.project.MavenProject mavenProject
velocityTemplate
protected org.apache.velocity.Template velocityTemplate
VelocityTemplateGenerator
public VelocityTemplateGenerator(org.apache.maven.project.MavenProject mavenProject,
URL template)
throws URISyntaxException
- Throws:
URISyntaxException
generate
public void generate(Properties context,
Writer writer)
throws Exception
- Throws:
Exception
generate
public void generate(Properties context,
File outputFile)
throws Exception
- Throws:
Exception
addPropertiesToContext
protected void addPropertiesToContext(Properties properties,
org.apache.velocity.VelocityContext context)
Copyright © 2009-2011 CodeLutin. All Rights Reserved.