org.richfaces.builder.mojo
Class GenerateMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.richfaces.builder.mojo.GenerateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class GenerateMojo
extends org.apache.maven.plugin.AbstractMojo

Author:
asmirnov@exadel.com

Field Summary
protected  List<String> classpathElements
          Project classpath.
protected  List<String> compileSourceRoots
          The source directories containing the sources to be compiled.
protected  org.apache.maven.model.FileSet[] facesConfigs
          The list of JSF configuration files that will be processed by CDK.
protected  Library library
           
protected  Map<String,String> options
           
protected  File outputDirectory
          The directory for compiled classes.
protected  File outputJavaDirectory
          Directory where the output Java Files will be located.
protected  File outputResourcesDirectory
          Directory where the output Java Files will be located.
protected  File outputTestDirectory
           
protected  File outputTestResourcesDirectory
          Directory where the output Java Files will be located.
protected  org.apache.maven.project.MavenProject project
          Top maven project.
protected  String[] sourceExcludes
          List of filename patterns that will be excluded from process by annotations processor.
protected  String[] sourceIncludes
          List of filename patterns that will be included to process by annotations processor.
protected  org.apache.maven.model.FileSet[] templates
          The list of JsfRenderer template files that will be processed by CDK.
protected  Map<String,String> workers
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GenerateMojo()
           
 
Method Summary
protected  org.richfaces.cdk.CdkClassLoader createProjectClassLoader(org.apache.maven.project.MavenProject project)
           
protected  Collection<File> doScan(org.apache.maven.model.FileSet[] filesets)
          Skan Array of filesets for selected resources.
protected  String[] doScan(String[] includes, String[] excludes, File rootFolder)
           
 void execute()
           
 
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

classpathElements

protected List<String> classpathElements
Project classpath.


compileSourceRoots

protected List<String> compileSourceRoots
The source directories containing the sources to be compiled.


facesConfigs

protected org.apache.maven.model.FileSet[] facesConfigs
The list of JSF configuration files that will be processed by CDK. By default, CDK looks for all files in the src/main/config folder with "xml" extension.


options

protected Map<String,String> options

library

protected Library library

outputDirectory

protected File outputDirectory
The directory for compiled classes.


outputJavaDirectory

protected File outputJavaDirectory
Directory where the output Java Files will be located.


outputResourcesDirectory

protected File outputResourcesDirectory
Directory where the output Java Files will be located.


outputTestDirectory

protected File outputTestDirectory

outputTestResourcesDirectory

protected File outputTestResourcesDirectory
Directory where the output Java Files will be located.


project

protected org.apache.maven.project.MavenProject project
Top maven project.


sourceExcludes

protected String[] sourceExcludes
List of filename patterns that will be excluded from process by annotations processor. By default, all *.java files will be processed.


sourceIncludes

protected String[] sourceIncludes
List of filename patterns that will be included to process by annotations processor. By default, all *.java files will be processed.


templates

protected org.apache.maven.model.FileSet[] templates
The list of JsfRenderer template files that will be processed by CDK. By default, CDK looks for all files in the src/main/templates folder with "xml" extension.


workers

protected Map<String,String> workers
Constructor Detail

GenerateMojo

public GenerateMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

createProjectClassLoader

protected org.richfaces.cdk.CdkClassLoader createProjectClassLoader(org.apache.maven.project.MavenProject project)

doScan

protected String[] doScan(String[] includes,
                          String[] excludes,
                          File rootFolder)
                   throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

doScan

protected Collection<File> doScan(org.apache.maven.model.FileSet[] filesets)
                           throws org.apache.maven.plugin.MojoExecutionException
Skan Array of filesets for selected resources.

Parameters:
filesets -
Returns:
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.