org.ajax4jsf.builder.mojo
Class GenerateMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.ajax4jsf.builder.mojo.AbstractCDKMojo
          extended by 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
 
Constructor Summary
GenerateMojo()
           
 
Method Summary
protected  org.ajax4jsf.builder.config.BuilderConfig createConfig(java.lang.ClassLoader generatiorLoader)
           
 void execute()
           
 java.lang.ClassLoader getClassLoader()
           
 java.io.File getDestDir()
           
 java.lang.String getKey()
           
 org.apache.velocity.Template getTemplate(java.lang.String name)
           
 java.lang.String getTemplatesPath()
           
 
Methods inherited from class org.ajax4jsf.builder.mojo.AbstractCDKMojo
checkLibraryConfig, checkTaglib, createProjectClassLoader, createProjectClassLoader, writeParsedTemplate
 
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
 

Field Detail

executedProject

protected org.apache.maven.project.MavenProject executedProject
Project executed by first compile lifecycle.

Constructor Detail

GenerateMojo

public GenerateMojo()
Method Detail

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.