org.ajax4jsf.builder.mojo
Class GenerateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.ajax4jsf.builder.mojo.AbstractCDKMojo
org.ajax4jsf.builder.mojo.GenerateMojo
- All Implemented Interfaces:
- org.ajax4jsf.builder.generator.JSFGeneratorConfiguration, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- GenerateTestMojo
public class GenerateMojo
- extends AbstractCDKMojo
- implements org.ajax4jsf.builder.generator.JSFGeneratorConfiguration
This plugin geterate JSF components and renderers source code, as well as
configuration files.
- Author:
- shura
Field Summary |
protected org.apache.maven.project.MavenProject |
executedProject
Project executed by first compile lifecycle. |
Fields inherited from class org.ajax4jsf.builder.mojo.AbstractCDKMojo |
classpathElements, compileSourceRoots, componentConfigDirectory, converterConfigDirectory, facesConfigInclude, key, library, outputDirectory, outputJavaDirectory, outputResourcesDirectory, outputTestsDirectory, project, resourcesInclude, taglibInclude, templatesDirectory, validatorConfigDirectory, velocity |
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 |
executedProject
protected org.apache.maven.project.MavenProject executedProject
- Project executed by first compile lifecycle.
GenerateMojo
public GenerateMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Specified by:
execute
in interface org.apache.maven.plugin.Mojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
createConfig
protected org.ajax4jsf.builder.config.BuilderConfig createConfig(java.lang.ClassLoader generatiorLoader)
throws org.ajax4jsf.builder.config.ParsingException
- Throws:
org.ajax4jsf.builder.config.ParsingException
getDestDir
public java.io.File getDestDir()
- Specified by:
getDestDir
in interface org.ajax4jsf.builder.generator.JSFGeneratorConfiguration
getKey
public java.lang.String getKey()
- Specified by:
getKey
in interface org.ajax4jsf.builder.generator.JSFGeneratorConfiguration
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interface org.ajax4jsf.builder.generator.JSFGeneratorConfiguration
getTemplate
public org.apache.velocity.Template getTemplate(java.lang.String name)
throws org.ajax4jsf.builder.generator.GeneratorException
- Specified by:
getTemplate
in interface org.ajax4jsf.builder.generator.JSFGeneratorConfiguration
- Throws:
org.ajax4jsf.builder.generator.GeneratorException
getTemplatesPath
public java.lang.String getTemplatesPath()
- Specified by:
getTemplatesPath
in interface org.ajax4jsf.builder.generator.JSFGeneratorConfiguration
Copyright © 2009. All Rights Reserved.