org.domdrides.maven.plugin
Class AbstractGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.domdrides.maven.plugin.AbstractGeneratorMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- GenerateEntityMojo, GenerateRepositoryMojo
public abstract class AbstractGeneratorMojo
- extends org.apache.maven.plugin.AbstractMojo
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
execute |
AbstractGeneratorMojo
public AbstractGeneratorMojo()
getBasePackage
public String getBasePackage()
setBasePackage
public void setBasePackage(String basePackage)
getClasspathElements
public List<String> getClasspathElements()
setClasspathElements
public void setClasspathElements(List<String> classpathElements)
getSrcDirectory
public File getSrcDirectory()
setSrcDirectory
public void setSrcDirectory(File srcDirectory)
createVelocityEngine
protected org.apache.velocity.app.VelocityEngine createVelocityEngine()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
generateSourceFile
protected void generateSourceFile(String templateName,
org.apache.velocity.VelocityContext context,
String className)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getClass
protected Class getClass(String name)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getProjectVersion
protected String getProjectVersion()
getEntityPackage
protected String getEntityPackage()
getRepositoryPackage
protected String getRepositoryPackage()
Copyright © 2013. All Rights Reserved.