org.nuiton.plugin
Class VelocityTemplateGenerator

java.lang.Object
  extended by 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
           
 
Constructor Summary
VelocityTemplateGenerator(org.apache.maven.project.MavenProject mavenProject, URL template)
           
 
Method Summary
protected  void addPropertiesToContext(Properties properties, org.apache.velocity.VelocityContext context)
           
 void generate(Properties context, File outputFile)
           
 void generate(Properties context, Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

engine

protected org.apache.velocity.app.VelocityEngine engine

mavenProject

protected org.apache.maven.project.MavenProject mavenProject

velocityTemplate

protected org.apache.velocity.Template velocityTemplate
Constructor Detail

VelocityTemplateGenerator

public VelocityTemplateGenerator(org.apache.maven.project.MavenProject mavenProject,
                                 URL template)
                          throws URISyntaxException
Throws:
URISyntaxException
Method Detail

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.